note 81430 deleted from function.round by danbrown

From: Date: Sun, 17 May 2009 16:15:32 +0000
Subject: note 81430 deleted from function.round by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154778@lists.php.net to get a copy of this message
Note Submitter: felix dot ospald at gmx dot de ---- BEWARE!: round(0.1) round(-0.1) gives "0" and "-0" so echo (((round(0.1).'EUR') == (round(-0.1).'EUR')) ? 'OK' : 'BUG OR FEATURE?'); gives: "BUG OR FEATURE?" number_format shows the same behaviour

« previous php.notes (#154778) next »