How do I get the result of a Division to 2 decimal places?

From: Date: Tue, 09 Sep 2003 14:06:29 +0000
Subject: How do I get the result of a Division to 2 decimal places?
Groups: php.general 
Request: Send a blank email to php-general+get-162061@lists.php.net to get a copy of this message
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

« previous php.general (#162061) next »