_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Is there a safe way to compare 2 floating point numbers in Perl? I
have 2 numbers, one of which was created by accumulating a series of
other numbers into it - the other was entered directly. My debugger
says that they're both '630.24', and when I print them, they both
print as '630.24'. However, the == test fails and the != test
succeeds. I can only think of taking their difference and checking if
that's less than something like 0.001. Is there a better way?
- comparing floating point numbers John Deighan
- Re: comparing floating point numbers Sisyphus
- re: comparing floating point numbers Ed Chester
- re: comparing floating point numbers John Deighan
- re: comparing floating point numbers Ken Barker
- Re: comparing floating point numbers $Bill Luebkert
- Re: comparing floating point numbers Ken Barker
- Re: comparing floating point number... Ted Schuerzinger
- RE: comparing floating point number... robert
- RE: comparing floating point numbers robert
- RE: comparing floating point numbers Darrell Gammill
