[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Floating point and precision loss - a bug?
- From: roberto@... (Roberto Ierusalimschy)
- Date: Fri, 18 May 2007 13:32:24 -0300
> > I have found a disturbing behaviour in the VM regarding floating point
> > calculations.
> >
> > [...]
> >
> > Is it a bug in the 5.1.2 release?
>
> No, it's not a bug. 1000.2 cannot be represented exactly in floating point.
> Please read http://lua-users.org/wiki/FloatingPoint .
It is worth repeating:
Please read http://lua-users.org/wiki/FloatingPoint .
(Completely off topic: sorry to ask, but what is the relationship
between "Jason" and "Luis Santos"?)
-- Roberto