>How do I round up a lot of decimal number like 10.232656898 to be 10.23 ?
Should I use this?
>$num = 10.26564787;
>$Rnum = round($num);
>What would be the function I am looking for and how?
Try:
$num = 10.26564787;
$Rnum = round($num, 2);
/Johan
--
PHP General Mailing List (http://www.php.n
How do I round up a lot of decimal number like 10.232656898 to be 10.23 ? Should I use
this?
$num = 10.26564787;
$Rnum = round($num);
What would be the function I am looking for and how?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"
2 matches
Mail list logo