Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Compare, two identical numbers are not the same?!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="sln, post: 4867070"] The ballpark for comparisons are C functions ceil/floor (posix in perl). Never can you compare doubles for equality, and never can you even see a print of thier actual float value. There is only one need for true comparisons, the is the case of Numerical Methods absolute "difference" being less/greater than some value. Or in the case of rounding is needed (ala the Pentium 60 bug where zero is less than some absolute value of some really small fraction of 1). -sln [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Compare, two identical numbers are not the same?!
Top