Doc #66745 [NEW]: Scientific notation
| From: | eric dot vercherat at gmail dot com | Date: | Thu, 20 Feb 2014 08:32:56 +0000 |
| Subject: | Doc #66745 [NEW]: Scientific notation | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-10996@lists.php.net to get a copy of this message | ||
From: eric dot vercherat at gmail dot com
Operating system:
PHP version: Irrelevant
Package: BC math related
Bug Type: Documentation Problem
Bug description:Scientific notation
Description:
------------
---
From manual page: http://www.php.net/ref.bc
---
It's not mentioned in the documentation that BC Math doesn't support
scientific notation.
Please make something about it.
Test script:
---------------
$a = '1' ;
$b = '0.00000001';
$result = bcdiv($a, $b);
var_dump($result);
$a = '1' ;
$b = '1e-8';
$result = bcdiv($a, $b);
var_dump($result);
Expected result:
----------------
string(40) "100000000.000000000000000000000000000000"
Actual result:
--------------
Warning: bcdiv() [function.bcdiv]: Division by zero in
C:\wamp\www\utilitaires\test_bcdiv.php on line 17
NULL
--
Edit bug report at https://bugs.php.net/bug.php?id=66745&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66745&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66745&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66745&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66745&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66745&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66745&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66745&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66745&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66745&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66745&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66745&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66745&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66745&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66745&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66745&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66745&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66745&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66745&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66745&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66745&r=mysqlcfg