MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: Floating point is like that... (was Re: Floating point error)
--- Tom Ritchford wrote:
If programmers are assuming that they are going to get
"exact" numbers with their floating point calculations,
I fear that they will be sadly disappointed.
--- end of quoted material ---
Agreed. The entire point of floating point numbers is increased range at the
expense of precision. Every 11th grader should be able to tell you that '1.6'
implies any number from '1.55' to '1.65', including '1.600000000001'
If you want precision, use integers instead.
-manta
Follow-Ups:
Home |
Subject Index |
Thread Index