Re: Proposal: native decimal scalar type support
| From: | Alexander Pravdin | Date: | Wed, 26 Apr 2023 12:23:39 +0000 |
| Subject: | Re: Proposal: native decimal scalar type support | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120138@lists.php.net to get a copy of this message | ||
On Wed, 26 Apr 2023 at 20:52, Benjamin Morel <benjamin.morel@gmail.com> wrote:
> For what it’s worth, this is already solved in userland:
> https://github.com/brick/math
When I checked the sources, the first I saw was:
> final class BigInteger extends BigNumber
> {
> private string $value;
It also converts to strings back and forth which can not be as
performant as native calculations and still is (with respect to the
authors) yet another band-aid over the missing core functionality. I
know that there are workarounds, but my proposal is about native
support.