lua-users home
lua-l archive

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

I don't know, I might expect some inaccuracy when I'm dealing with
numbers that have 8 or 9 significant digits, but being unable to
accurately represent a float to 2 decimal points seems ridiculously
inaccurate to me. That's why I wonder if it's just a bug in the tostring

Ian Latham

-----Original Message-----
From: Sean Middleditch [] 
Sent: Wednesday, September 18, 2002 10:23 AM
To: Multiple recipients of list
Subject: Re: Rounding errors?

Correct me if I'm wrong, but floating point values being an
approximation, this is rather normal.  Computers do not accurately store
floating point values (at least on no architecture I've ever used). 
This is why banking software is written with integer values only.  ~,^