http://www.perlmonks.org?node_id=501220


in reply to problem with variables

Try comparing your numbers to a fixed number of decimal places.
e.g.
if (sprintf("%.3f",$x) == sprintf("%.3f",$y)) { print "IS equal to 3 dp\n"; };



This is not a Signature...