I am new to php. Can anyone tell how to change the query such that it will print 16.66. I need 16.66667 to be only 16.66.
<?php
$number = 16.6666667;
$n = number_format($number, 2);
echo $n; // 16.67
?>
I am getting output as 16.67. Thanks for any help.