Source Code:
(back to article)
<?php $number = 123.456; printf("%.2f", $number); // Outputs 123.46
Result:
Report an issue