|
|
||
|
On 2-Mar-05, at 12:28 PM, Roberto Ierusalimschy wrote:
What is wrong with the following code?
math.nan = 0/0 math.inf = 1/0
If you've compiled Lua with integer Numbers rather than floating point ones, this will crash and burn, probably.
Is there any reason why anyone would use such library in that case?
a = assert(math.sqrt(x), "Negatives only have round roots")