[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: executing pcall results into devision by zero
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 23 Jul 2008 18:01:59 -0300
> 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.