Re: Extension: arbitrary precision decimal arithmetic in PHP 7
| From: | Albert Casademont | Date: | Sat, 29 Sep 2018 17:16:45 +0000 |
| Subject: | Re: Extension: arbitrary precision decimal arithmetic in PHP 7 | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103280@lists.php.net to get a copy of this message | ||
Looks promising! Could it be added to PECL maybe? That would make it easier
for people to test :D
On Sat, 29 Sep 2018 at 17:46, Rudi Theunissen <rtheunissen@php.net> wrote:
> Actually yes! You mentioned it to me 5 months ago in a thread on Reddit:
>
>
> https://www.reddit.com/r/PHP/comments/8fpwi4/if_php_had_a_native_decimal_type_would_you_use_it/dy6zon9/
>
> I'll take a close look at GMPi today and compare them objectively. :)
>
> On Sat, Sep 29, 2018 at 7:20 AM Sara Golemon <pollita@php.net> wrote:
>
> > On Fri, Sep 28, 2018 at 6:06 PM Rudi Theunissen <rtheunissen@php.net>
> > wrote:
> > > I've been working on adding arbitrary precision decimal support as an
> > > alternative to *bcmath. *I have created an extension based on
> > *mpdecimal*,
> > > which is what Python 3's decimal module is also based on. I haven't
> > > released or broadcast this project yet, because I wanted to discuss the
> > API
> > > and implementation with internals first.
> > >
> > Have you looked at GMPi ? https://github.com/sgolemon/gmpi
> > It's a replacement for GMP (which includes floating point and an OOP
> > interface).
> >
> > -Sara
> >
>