Re: Proposal: native decimal scalar type support
| From: | Benjamin Morel | Date: | Wed, 26 Apr 2023 11:52:12 +0000 |
| Subject: | Re: Proposal: native decimal scalar type support | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120137@lists.php.net to get a copy of this message | ||
Le mer. 26 avr. 2023 à 12:29, Alexander Pravdin <alex.pravdin@interi.co> a
écrit :
> As a user, I want to have native decimal scalar type support.
>
For what it’s worth, this is already solved in userland:
https://github.com/brick/math
Now having always-available support for arbitrary precision math in the
language, without having to install ext-gmp or ext-bcmath, would definitely
be a plus. Currently, brick/math can fallback to pure PHP calculations, but
with a severe performance hit.
- Benjamin