Re: [RFC] [Discussion] Add bcdivmod to BCMath
| From: | Derick Rethans | Date: | Wed, 10 Jul 2024 09:01:55 +0000 |
| Subject: | Re: [RFC] [Discussion] Add bcdivmod to BCMath | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124335@lists.php.net to get a copy of this message | ||
On Wed, 10 Jul 2024, Derick Rethans wrote:
> On Mon, 1 Jul 2024, Saki Takamachi wrote:
>
> The example has:
>
> [$perMouth, $slicesLeft] = $slicesOfPizza->divmod($mouthsToFeed);
>
> // $perMouth->value is '2'
> // $slicesLeft->value is '2'
>
> Shouldn't that be (without the ->value) ?
I can answer this myself now :-) No, it shouldn't be, as $perMouth is a
Number object.
cheers,
Derick