Need help:
What I want is the number 1099.924343
to become 1100.00
When I do this:
$number=1099.924343;
echo ceil($number);
echo "<br>";
echo round($number,2);
This is the result I get:
1100
1099.92
Please give some suggestion.
Need help:
What I want is the number 1099.924343
to become 1100.00
When I do this:
$number=1099.924343;
echo ceil($number);
echo "<br>";
echo round($number,2);
This is the result I get:
1100
1099.92
Please give some suggestion.
you could do
echo number_format( ceil( $number ), 2 );
Read more: