lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is it specified anywhere what, exactly, the '*n' format is supposed to read? The manual only seems to say "a number" which is fairly ambiguous. Should "-5", "+5", "0xAF", "1e9", "1e+9", "1e-9",  "0xAFp9", "1.0", "-1.3e-1", etc be considered numbers by this format?

I ask because I want to use the same formats as file:read() elsewhere and I want them to have the same behaviour, but that's difficult if I don't know the exact behaviour being used.

--
Sent from my Game Boy.