<?
$a=1.5345493;
$b=round($a,2);
echo "b: ".$b;
?>
This code should return "b: 1.54", but instead returns "b: 1.53". Can
anyone else confirm this?
Also, does anyone have a way around this issue?
PHP 4.3.6
Apache 1.3.33
MySQL 3.23.49
$a=1.5345493;
$b=round($a,2);
echo "b: ".$b;
?>
This code should return "b: 1.54", but instead returns "b: 1.53". Can
anyone else confirm this?
Also, does anyone have a way around this issue?
PHP 4.3.6
Apache 1.3.33
MySQL 3.23.49
Comment