Doc #69349 [Opn]: Default value of $scale parameter wrong

From: Date: Wed, 01 Apr 2015 17:44:34 +0000
Subject: Doc #69349 [Opn]: Default value of $scale parameter wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12079@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69349&edit=1 ID: 69349 Updated by: cmb@php.net Reported by: cmb@php.net Summary: Default value of $scale parameter wrong Status: Open Type: Documentation Problem Package: BC math related Operating System: * PHP Version: Irrelevant Block user comment: N Private report: N New Comment: bccomp(), bcmul(), bcpowmod() and bcsub() have the same issue. Furthermore some of the BC Math functions specify: string $left_operand = "" , string $right_operand = "" It doesn't seem to make much sense to give a default for a mandatory parameter. Previous Comments: ------------------------------------------------------------------------ [2015-04-01 17:38:49] cmb@php.net Description: ------------ --- From manual page: http://www.php.net/function.bcdiv --- Part of the function signature is: [, int $scale = int ] That doesn't make much sense. The default is 0 or whatever has been set with bcscale(). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69349&edit=1

« previous php.doc.bugs (#12079) next »