Re: [RFC] Floating Point support in GMP extension

From: Date: Thu, 24 Apr 2014 21:21:38 +0000
Subject: Re: [RFC] Floating Point support in GMP extension
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-73786@lists.php.net to get a copy of this message
How to make PHP userland class, overloading math operators?


2014-04-24 23:29 GMT+03:00 Stas Malyshev <smalyshev@sugarcrm.com>:

> Hi!
>
> > We use BCMath, but bulky code BCMath:
> > bcmul(bcadd($a, $b, $scale), 2, $scale)
> > I want to write simple:
> > $a + $b * 2
> >
> > I'm looking forward to implementing GMPFloat
>
> Nothing prevents one from doing with bcmath what was done with GMP with
> regard to move to objects and support for operators, as far as I can see.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227
>


Thread (9 messages)

« previous php.internals (#73786) next »