note 93713 added to function.exp
| From: | Nitrogen at osu1 dot php dot net | Date: | Thu, 24 Sep 2009 00:54:20 +0000 |
| Subject: | note 93713 added to function.exp | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161003@lists.php.net to get a copy of this message | ||
Just a note about using the submitted codes below..
Their functions have an optional $precision parameter; however, it's not being used properly..
BCMath functions by default do not use decimal precision unless specified by BCScale($precision); or
using the extra parameter in the used BC functions.
For example, a blank PHP file with their code.. executing BCExp('5.7'); returns
"47" instead of the correct answer of "298.86740096706..."
So for optimum accuracy, I'd suggest setting BCScale to a healthy length before running their
codes.
----
Server IP: 87.124.86.46
Probable Submitter: 81.157.231.27 (proxied: 81.157.231.27)
----
Manual Page -- http://www.php.net/manual/en/function.exp.php
Edit -- https://master.php.net/note/edit/93713
Del: integrated -- https://master.php.net/note/delete/93713/integrated
Del: useless -- https://master.php.net/note/delete/93713/useless
Del: bad code -- https://master.php.net/note/delete/93713/bad+code
Del: spam -- https://master.php.net/note/delete/93713/spam
Del: non-english -- https://master.php.net/note/delete/93713/non-english
Del: in docs -- https://master.php.net/note/delete/93713/in+docs
Del: other reasons-- https://master.php.net/note/delete/93713
Reject -- https://master.php.net/note/reject/93713
Search -- https://master.php.net/manage/user-notes.php