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

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

« previous php.general (#162063) next »