note 77572 deleted from function.round by danbrown

From: Date: Sun, 17 May 2009 16:17:12 +0000
Subject: note 77572 deleted from function.round by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154786@lists.php.net to get a copy of this message
Note Submitter: xploded at lycos.com ---- to mark at customcartons dot com dot au found your roundup very useful, the only problem is if the value passed is 0.00 as it roundsup to 0.01 which may not be desired. I modified the return statement to: return ($value>0) ? round($value+$offset,$dp) : '0.00'; regards James

« previous php.notes (#154786) next »