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?

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to