|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-09-09 07:37 UTC] aharvey@php.net
-Status: Open
+Status: Assigned
-Type: Bug
+Type: Documentation Problem
-Package: BC math related
+Package: Documentation problem
-Assigned To:
+Assigned To: aharvey
[2010-09-09 07:37 UTC] aharvey@php.net
[2010-09-09 07:45 UTC] aharvey@php.net
[2010-09-09 07:45 UTC] aharvey@php.net
-Status: Assigned
+Status: Closed
[2010-09-09 07:45 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 03:00:01 2025 UTC |
Description: ------------ Executing bcpow('-2', '5') and bcpow('-2', '5', 2) results in same string ("-32"). Test script: --------------- --TEST-- bcpow() - scale parameter doesn't influensce the result string --SKIPIF-- <?php if(! extension_loaded('bcmath')) print 'extension bcmath not loaded'; ?> --INI-- bcmath.scale=0 --FILE-- <?php var_dump(bcpow('-2', '5')); var_dump(bcpow('-2', '5', 2)); ?> --EXPECT-- string(3) "-32" string(5) "-32.00" Expected result: ---------------- string(3) "-32" string(5) "-32.00" Actual result: -------------- string(3) "-32" string(3) "-32"