lua-users home
lua-l archive

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


> My main problem in understanding: When I executed with "loadstring" and 
> "pcall" the program "a = 2 / 0" I got an division by zero exception - 
> shouldn't pcall catch all errors ???

Division by zero is not an error in all platforms. Those that
support IEEE 754 floating-point arithmetic handle division by
zero just fine and produce infinity.