Source Code:
(back to article)
<?php $num = 3.14159; $rounded = round($num, 2); echo $rounded; // Output: 3.14 ?>
Result:
Report an issue