$x = 4.5012412;
echo round($x, 2); // results in 4.5 --- however I want 4.50! I want 2
decimal places!

echo number_format ( round ($x, 2), 2);


Larry


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to