Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: When 1000 is less than 1000

by Anonymous Monk
on Sep 27, 2010 at 06:31 UTC ( [id://862152]=note: print w/replies, xml ) Need Help??


in reply to When 1000 is less than 1000

Yet, it appears to return TRUE nearly every time I end up checking if 1000 < 1000

Thats your eyes playing tricks on you 1000 is never less than 1000, but 1000.00001 is less than 1000.000011

What Every Computer Scientist Should Know About Floating-Point Arithmetic

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://862152]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-16 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found