Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103279 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69220 invoked from network); 29 Sep 2018 19:37:29 -0000 Received: from unknown (HELO mail-vs1-f53.google.com) (209.85.217.53) by pb1.pair.com with SMTP; 29 Sep 2018 19:37:29 -0000 Received: by mail-vs1-f53.google.com with SMTP id y11-v6so5272336vso.5 for ; Sat, 29 Sep 2018 08:46:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0tGPCpu0MuyCxQzvhqOKSDX147w+dc6aXbMn8dVKs8k=; b=UJTnvPmYDz+QGpRJENTd3WqVRqnOtpa3tE7KaX9SChjUaBLQnm560PqQlibBphNADc sPnRWDOfqg/VH6zQkxYQS4uvfz0KMuOlnpKNPfRyrui3kNWGCnbYDVl/c10pfuzEuHug eP7CsgpmT8HTRrTNK1Q+ZAaI70C5NgJ21Znr+If6fst6yk0pVuul/vCmb3InBorezXlz kJf1tQs1IXbOBU3NNjJwGeuinCyG5zwu8hVR8nDeLTGzfZi32tGjVGF/VLI5z1jJeKM7 pv0/XM32yoMhbbW2pLOkNj0IFKhDFIGYWiQ/eERNfh6Vhnhykv1fcwydg8ILyaFS0nBF 133Q== X-Gm-Message-State: ABuFfoh+MNdspcsNXYDS3nojVw6nl2EIIhQC5qDeDDPF+v93BFto5q5j NCrBX2povLf7idfTCZ8XJ56U/CND X-Google-Smtp-Source: ACcGV61NCaYof5aRLxYqZL0JOQKl21Cb/29vkajQBYrnxE02vnAoeQoT32uQCgULFQYafA6CxokCow== X-Received: by 2002:a67:6487:: with SMTP id y129-v6mr1313600vsb.156.1538235981518; Sat, 29 Sep 2018 08:46:21 -0700 (PDT) Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com. [209.85.222.41]) by smtp.gmail.com with ESMTPSA id e63-v6sm4458894vka.22.2018.09.29.08.46.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Sep 2018 08:46:21 -0700 (PDT) Received: by mail-ua1-f41.google.com with SMTP id j17-v6so3384065uan.5 for ; Sat, 29 Sep 2018 08:46:21 -0700 (PDT) X-Received: by 2002:ab0:70d1:: with SMTP id r17-v6mr1509839ual.62.1538235980926; Sat, 29 Sep 2018 08:46:20 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 29 Sep 2018 08:46:10 -0700 X-Gmail-Original-Message-ID: Message-ID: To: pollita@php.net Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000003957a60577047925" Subject: Re: [PHP-DEV] Extension: arbitrary precision decimal arithmetic in PHP 7 From: rtheunissen@php.net (Rudi Theunissen) --0000000000003957a60577047925 Content-Type: text/plain; charset="UTF-8" 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 wrote: > On Fri, Sep 28, 2018 at 6:06 PM Rudi Theunissen > 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 > --0000000000003957a60577047925--