note 24522 modified in function.round by jmcastagnetto

From: Date: Tue, 20 Aug 2002 22:33:04 +0000
Subject: note 24522 modified in function.round by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35273@lists.php.net to get a copy of this message
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: $res = (round(20*$chf))/20; echo $res; with kind regards --was-- 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: $res = (round(20*$chf))720; echo $res; with kind regards http://www.php.net/manual/en/function.round.php

« previous php.notes (#35273) next »