note 118248 added to function.ceil
| From: | Anonymous | Date: | Tue, 03 Nov 2015 09:22:06 +0000 |
| Subject: | note 118248 added to function.ceil | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204074@lists.php.net to get a copy of this message | ||
Just a quick note to be careful of, if you use the "round_up" code suggested by steve, i
must warn you it isn't completely fool proof.
I have the following maths which is evaluated incorrectly
37.2000 - 6.2000 = 31.01
echo(round_up(37.2000 - 6.2000,2));
This returns the incorrect result, 31.01 which as any junior in mathematics knows...IS WRONG!
use with caution.
----
Server IP: 72.52.91.14
Probable Submitter: 164.39.7.250
----
Manual Page -- http://php.net/manual/en/function.ceil.php
Edit -- https://master.php.net/note/edit/118248
Del: integrated -- https://master.php.net/note/delete/118248/integrated
Del: useless -- https://master.php.net/note/delete/118248/useless
Del: bad code -- https://master.php.net/note/delete/118248/bad+code
Del: spam -- https://master.php.net/note/delete/118248/spam
Del: non-english -- https://master.php.net/note/delete/118248/non-english
Del: in docs -- https://master.php.net/note/delete/118248/in+docs
Del: other reasons-- https://master.php.net/note/delete/118248
Reject -- https://master.php.net/note/reject/118248
Search -- https://master.php.net/manage/user-notes.php