printf("%.2f",$number);

Shaun wrote:

Hi,

I am dividing a number by another number and printing the result to the
screen. How can I ensure that the number is rounded up to 2 decimal places?

Thanks for your help





--
http://www.radinks.com/upload
Drag and Drop File Uploader.

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



Reply via email to