note 24522 deleted from function.round by googleguy

From: Date: Sun, 09 Dec 2012 08:27:40 +0000
Subject: note 24522 deleted from function.round by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192428@lists.php.net to get a copy of this message
Note Submitter: kt at netspirit dot ch ---- because of some site-effects between round() and modulo, therfore the result is not exactly at every time ... another way ( and without site-effects) of getting 0.05 increments for currencies, f.e. swiss francs: <?php $res = (round(20*$chf))/20; echo $res; ?> with kind regards

« previous php.notes (#192428) next »