approx($num, 7); # will return 0.5 for 0.500000001 but 0.50000001 if # that is passed as it only has 6 zeros.