Re: [RFC] [Discussion] Support object type in BCMath
| From: | Saki Takamachi | Date: | Thu, 04 Apr 2024 09:46:11 +0000 |
| Subject: | Re: [RFC] [Discussion] Support object type in BCMath | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122926@lists.php.net to get a copy of this message | ||
Hi Chris,
> Looks very promising!
>
> The default value for rounding is PHP_ROUND_TOWARD_ZERO. Is this because it is the same as the
> BCMath functions for consistency only or do you expect this to be the most used rounding mode?
> I didn't find any discussion about this choice, sorry if I missed it.
Thank you!
Yes, you're right, I've made it match the existing behavior of BCMath. And rest assured,
there has been no discussion about that yet.
I haven't thought about it in detail yet, but maybe there are other ideal initial values?
Regards.
Saki