John Deighan:: > Is there a safe way to compare 2 floating point numbers in Perl? [snip] > My debugger says that they're both '630.24' [snip] > However, the == test fails and the != test succeeds
can you post code with the comparison == that fails ? if the debugger says they're the same, they're very very probably the same. are you sure the variable (or whatever) you're giving to == are really what you want them to be? there are lots of ways to compare numbers, right down to looping over the bits and logically XNORing them. ed c _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs