|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re^4: False positive on inequality comparisonby Nkuvu (Priest) |
| on Apr 06, 2009 at 18:08 UTC ( #755808=note: print w/ replies, xml ) | Need Help?? |
|
For the record, I did try this as well, but it didn't help my Monday morning mind narrow anything down. Specifically, I found the same three differences. The binary representations didn't change between the time I read the values in and the time I compared them. First two lines are reading files in from Excel sheets, second two are later in the script when the difference is found. I didn't include all three differences here, since they're all the same scenario. Different values read in from the files, no change to those values for the comparison:
I'm not familiar enough with floating point representation to say what the difference is (it's been years since I had to convert a binary to float, and unfortunately need to do actual work this morning rather than brush up on the process). I think this is a difference in exponents, but that wouldn't make a lot of sense to me with the rest of the binary value being identical.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||