if (sprintf("%.1f", $x1) == sprintf("%.1f",$x2)) { print "SAME\n"; } else { print "NOT SAME\n"; } [download]
In reply to Re: perl numeric expressions by monkey_boy in thread perl numeric expressions by deckard