in reply to Floating Point Looping In Perl

Comparing floating point numbers is not precise unless you make it so by writing your own equal subroutine or treat the data as integers and convert to floating point on display. Floating point numbers are represented internally as binary. There are certain floating point numbers that cannot be represented exactly in binary on your computer. This is similar to 2/3 not being exactly represented in decimal.