Hi,
With reference to decimal numbers, how do I keep only the first 2 numbers after the decimal point?
<?php $number = 5.5; echo $number / 3; ?>
[man]round/man or [man]number_format/man or [man]sprintf/man
Is it possible to just cut the numbers off after the 2 numbers following the decimal place?
$number = round( floor($number * 100) / 100), 2);