[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Automatic string <> number conversion, what about INF, NaN?
- From: "Albert-Jan Brouwer" <acj.brouwer@...>
- Date: Fri, 13 Dec 2002 12:19:18 +0100
Lua and its API (lua_tostring() lua_tonumber()) does automatic
conversion between numbers and strings representing numbers.
This symmetry seems to be broken for special floating point
values representing +/- infinity or various "not a numbers".
< infinity = 1/0
> bad argument #1 to `sin' (number expected, got string)