note 77008 added to function.ceil

From: Date: Fri, 10 Aug 2007 01:01:56 +0000
Subject: note 77008 added to function.ceil
Groups: php.notes 
Request: Send a blank email to php-notes+get-129388@lists.php.net to get a copy of this message
Just to comment on zariok's comment (which is right below mine), his problem is likely due to the fact that decimal numbers (such as 0.5500) cannot be exactly represented in binary (and hence computers can't precisely determine that 0.5500 * 100 = 55). This feature is great when you know that your result is going to be nowhere near an integer (for example, finding ceil(1/3) will confidently give a 1). However in situations like his, this is probably not the better function to use. ---- Server IP: 216.235.15.211 Probable Submitter: 72.142.168.234 ---- Manual Page -- http://www.php.net/manual/en/function.ceil.php Edit -- https://master.php.net/note/edit/77008 Del: integrated -- https://master.php.net/note/delete/77008/integrated Del: useless -- https://master.php.net/note/delete/77008/useless Del: bad code -- https://master.php.net/note/delete/77008/bad+code Del: spam -- https://master.php.net/note/delete/77008/spam Del: non-english -- https://master.php.net/note/delete/77008/non-english Del: in docs -- https://master.php.net/note/delete/77008/in+docs Del: other reasons-- https://master.php.net/note/delete/77008 Reject -- https://master.php.net/note/reject/77008 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129388) next »