http://qs1969.pair.com?node_id=16105


in reply to Numbers....

If you wanted to cut a number like 10.8766756 down to 10.8 why not use the substr function? You obviously don't want to simply round it (because that would be 10.9), so you could simply say:
$a = 10.8766756; $a = substr($a, 0, 4);