lua-users home
lua-l archive

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


Peter Hill wrote:


(5) NUMBER SYNTAX
The official format for numbers should be specified. It appears to be:
    number ::= digit {digit} ['.' {digit}] [('e' | 'E') [-] digit {digit}]
where
    digit ::= '0' | '1' | ... | '9'



I guess the answer here is "what system strtod supports",
unless lua_str2number has been defined by the person compiling
Lua. (This of course could/should be documented)


Some implementations convert strings like inf or nan to numbers too...


		Eero