$a =99.99999;
echo $f = sprintf ("%.2f", $a);
output value is 100.00
But i need 99.99
can any one help this please
$a =99.99999;
echo $f = sprintf ("%.2f", $a);
output value is 100.00
But i need 99.99
can any one help this please
echo intval((99.99999*100))/100;
Taken from here: