[ create a new paste ] login | about

Link: http://codepad.org/o24ssMxn    [ raw code | output | fork ]

martin@mustbebuilt.co.uk - PHP, pasted on Jun 25:
1
2
3
4
5
<?php
$price = 5.55;
$price2= round($price, 1);
print($price2); // outputs 5.6
?> 


Output:
1
5.6 


Create a new paste based on this one


Comments: