Re: == operator acts differently in perl 5.005_03 and 5.8.2

From: Jürgen Exner (jurgenex_at_hotmail.com)
Date: 03/22/05


Date: Tue, 22 Mar 2005 03:09:05 GMT

Yahav wrote:
> Second, my current solution is to multiply each of the numbers by one,
> and then i get the same number...
> Maybe there's other (maybe better) ways of overtaking this..

Arrrrg, if you quoting Tad's hint for the FAQ, then why don't you actually
read _and_follow_ it?
Obviously you must have missed the first class in Introduction to Computer
Numerics, therefore here a summary:

    Thou shalt not compare floating point numbers for equality!

If you must then use an epsilon distance instead.

jue