lua-users home
lua-l archive

Re: What am I doing wrong with tonumber?

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


> s='nan' print(tonumber(s), s)
Some libc support 'nan', some don't.
You can use it if you want but don't count on it in general.

AltStyle によって変換されたページ (->オリジナル) /