Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73786 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50190 invoked from network); 24 Apr 2014 21:21:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 21:21:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=park.framework@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=park.framework@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.54 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 74.125.83.54 mail-ee0-f54.google.com Received: from [74.125.83.54] ([74.125.83.54:36737] helo=mail-ee0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/55-20919-66089535 for ; Thu, 24 Apr 2014 17:21:42 -0400 Received: by mail-ee0-f54.google.com with SMTP id d49so2274321eek.13 for ; Thu, 24 Apr 2014 14:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3cuStfyhttqOH9x3/LWtFhew83Vrw6GzD2oisiqoscM=; b=KRj2uYOR9131M3fy8xqs+MnTkmlZQHtQqFbSlVMyetykshX/IRoiD4obMLe7OApwEH 1fMImAuk6N5SPEONzpdvtUl6bsA3gYb7MR/KqPePSSDdxOF1KES5OrryaGLOw/pUTrPC 674PLpksB7ix4g6XbNPjSgbWykqSIN6GkioQsu23M5mwNeY5TqI/jeUw8sz37ZXKTGeZ UqHyShGS9Wml6IKhMee2uLIKTYbSoRrHXds7h1GuWJHZ1BgDtvY2+ayQUSHcbtOXi9j8 cEZiIbNJidguAb1M3ITeQeOCNjGF7lEgj8iRiluNc/VN9W0AkObm6ZaevApYZbv/hUn8 mhsw== MIME-Version: 1.0 X-Received: by 10.15.42.138 with SMTP id u10mr4789983eev.7.1398374499065; Thu, 24 Apr 2014 14:21:39 -0700 (PDT) Received: by 10.14.107.199 with HTTP; Thu, 24 Apr 2014 14:21:38 -0700 (PDT) In-Reply-To: <53597418.5090605@sugarcrm.com> References: <53597418.5090605@sugarcrm.com> Date: Fri, 25 Apr 2014 00:21:38 +0300 Message-ID: To: Stas Malyshev Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=089e0160c1be47a3d504f7d06f64 Subject: Re: [PHP-DEV] [RFC] Floating Point support in GMP extension From: park.framework@gmail.com (Park Framework) --089e0160c1be47a3d504f7d06f64 Content-Type: text/plain; charset=UTF-8 How to make PHP userland class, overloading math operators? 2014-04-24 23:29 GMT+03:00 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 > --089e0160c1be47a3d504f7d06f64--