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