note 19435 deleted from function.floor by danbrown

From: Date: Thu, 10 Mar 2011 15:24:06 +0000
Subject: note 19435 deleted from function.floor by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177771@lists.php.net to get a copy of this message
Note Submitter: alhall at jcw dot org ---- //Using floor() to round decimals. $original_price=12.72 $discount=$original_price*.40; $discount=floor(($discount * 100)+.5)/100; //$discount=5.088 //$discount after floor() = 5.09

« previous php.notes (#177771) next »