note 9639 deleted from function.round by jeroen

From: Date: Sat, 01 Sep 2001 12:38:04 +0000
Subject: note 9639 deleted from function.round by jeroen
Groups: php.notes 
Request: Send a blank email to php-notes+get-17497@lists.php.net to get a copy of this message
For PHP3 users who can't specify a precision: function my_rounder($value) { $buffer = $value * 100; $rounded = round($buffer); $buffer = $rounded / 100; return $buffer; } Seems to work better than ($value*100)/100 ...

« previous php.notes (#17497) next »