note 81430 added to function.round

From: Date: Thu, 28 Feb 2008 00:19:12 +0000
Subject: note 81430 added to function.round
Groups: php.notes 
Request: Send a blank email to php-notes+get-136540@lists.php.net to get a copy of this message
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 ---- Server IP: 217.160.72.57 Probable Submitter: 217.68.170.200 ---- Manual Page -- http://www.php.net/manual/en/function.round.php Edit -- https://master.php.net/note/edit/81430 Del: integrated -- https://master.php.net/note/delete/81430/integrated Del: useless -- https://master.php.net/note/delete/81430/useless Del: bad code -- https://master.php.net/note/delete/81430/bad+code Del: spam -- https://master.php.net/note/delete/81430/spam Del: non-english -- https://master.php.net/note/delete/81430/non-english Del: in docs -- https://master.php.net/note/delete/81430/in+docs Del: other reasons-- https://master.php.net/note/delete/81430 Reject -- https://master.php.net/note/reject/81430 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136540) next »