Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73785 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46602 invoked from network); 24 Apr 2014 20:29:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 20:29:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.75 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.75 smtp75.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.75] ([108.166.43.75:40013] helo=smtp75.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/B4-20919-C1479535 for ; Thu, 24 Apr 2014 16:29:16 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id E09CB1E87E0; Thu, 24 Apr 2014 16:29:13 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp2.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 88CE21E8E01; Thu, 24 Apr 2014 16:29:13 -0400 (EDT) Message-ID: <53597418.5090605@sugarcrm.com> Date: Thu, 24 Apr 2014 13:29:12 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Park Framework , Nikita Popov CC: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Floating Point support in GMP extension From: smalyshev@sugarcrm.com (Stas Malyshev) 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