round

From: Date: Wed, 26 Jan 2005 11:32:32 +0000
Subject: round
Groups: php.general 
Request: Send a blank email to php-general+get-207369@lists.php.net to get a copy of this message
Hello, I have these values: 8.26456 9.7654 3.0000 5.2689 and I want them rounded to two decimal places so I use the round : round($value,2) which gives me, for example: 8.26 But, it also gives me 3 instead of 3.00. How can I round but retain the 0's? Thanks!

« previous php.general (#207369) next »