I would like to solve rounding mechanism by using php4,5.2 and below (not 5.3) Currently I am doing 0.05 rounding, something like this page:
http://www.bnm.gov.my/in
I'm sure there are more elegant solutions, but this appears to suit the task:
0) && ($r2 < 0.5)) { $a = $a + 0.05; } echo "\n" . 'a= ' . $a; }