note 72962 added to function.floatval
| From: | etnemelcjr at osu1 dot php dot net | Date: | Tue, 06 Feb 2007 05:50:06 +0000 |
| Subject: | note 72962 added to function.floatval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-122904@lists.php.net to get a copy of this message | ||
hi.. im having problem with adding negative and positive numbers.. my numbers are in an array.. what
i do is i add teo double type numbers.. sample:
9278.88 + -9278.88
and etc..
well, most of the sum of the two numbers are correct, but there are instances that the answer is
wrong.. im sure i have the right number. but still 9278.88 + -9278.88 ives 1.818988787E-012 answer..
i dont understand..
i tried to identify if the numbers are numbers and it is. i tried is_numeric.. evrything is ok with
the dat. i just dont understand why it gives an E-012 answer.. please help.. thanks a lot!
----
Server IP: 69.147.83.197
Probable Submitter: 203.177.1.114 (proxied: 192.168.109.43)
----
Manual Page -- http://www.php.net/manual/en/function.floatval.php
Edit -- https://master.php.net/note/edit/72962
Del: integrated -- https://master.php.net/note/delete/72962/integrated
Del: useless -- https://master.php.net/note/delete/72962/useless
Del: bad code -- https://master.php.net/note/delete/72962/bad+code
Del: spam -- https://master.php.net/note/delete/72962/spam
Del: non-english -- https://master.php.net/note/delete/72962/non-english
Del: in docs -- https://master.php.net/note/delete/72962/in+docs
Del: other reasons-- https://master.php.net/note/delete/72962
Reject -- https://master.php.net/note/reject/72962
Search -- https://master.php.net/manage/user-notes.php