Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122745 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 0AB2E1A009C for ; Tue, 26 Mar 2024 08:44:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1711442693; bh=mwSEDwnVgLnUVTTWBkB9uOjD02MRtBj8LQFsoaVL0g8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=MQlV3ldpGAkvH/M1r0/rwBijZsx2KyCmHufRVRhg73nR3yTHjEzUeVqdQyNfIlSbr mHc0w+MKk5OnpUXrI4VKFqEgaq3yTrLoJiv+JrKJyX9wWy3CDb6kV3uR7ocKIcwUSG MjSm8RM/6G8LgoZlBEKlQYpD2GgA7ysftduHzjjkOSO6/knApGbW/Am8CXWpzWbOWK eQGepkvwmHXD77dMXYmT3T363PllO8v9/tvHXa/Ub3NJv2KJ9sRhDtLpyy+czCSe4Y ccXSuLTF13QEybq3mZ3xM3Zp0xeegAXkUZFhiJmZSOQ7+zYo8q/rifxFFr0Q9EZ/4L zBTer2I9NSXww== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8FB41180004 for ; Tue, 26 Mar 2024 08:44:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_50,DMARC_MISSING, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from gliadin.co.uk (gliadin.co.uk [80.82.115.221]) by php-smtp4.php.net (Postfix) with ESMTP for ; Tue, 26 Mar 2024 08:44:51 +0000 (UTC) Received: from [192.168.0.17] (hari-18-b2-v4wan-169870-cust740.vm1.cable.virginm.net [92.239.242.229]) by gliadin.co.uk (Postfix) with ESMTPSA id A24D3FA282A for ; Tue, 26 Mar 2024 11:44:26 +0300 (MSK) Content-Type: multipart/alternative; boundary="------------FxEYpiQQxnLepkel0Y7dwIje" Message-ID: <38d69258-cdaf-45d3-ba52-dc1398301c8c@redmagic.org.uk> Date: Tue, 26 Mar 2024 08:44:26 +0000 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath To: internals@lists.php.net References: <4F094EDA-5058-407D-AF39-06FD934FDE1F@sakiot.com> Content-Language: en-US In-Reply-To: <4F094EDA-5058-407D-AF39-06FD934FDE1F@sakiot.com> From: barney@redmagic.org.uk (Barney Laurance) This is a multi-part message in MIME format. --------------FxEYpiQQxnLepkel0Y7dwIje Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 24/03/2024 13:13, Saki Takamachi wrote: > I want to start the discussion on the PHP RFC: Support object type in BCMath. > > https://wiki.php.net/rfc/support_object_type_in_bcmath One more suggestion - might it be worth adding a `format` function to the new BcNum class? This would be similar to the existing number_format function, but would avoid the need to lose precision by converting to float first. --------------FxEYpiQQxnLepkel0Y7dwIje Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 24/03/2024 13:13, Saki Takamachi wrote:
I want to start the discussion on the PHP RFC: Support object type in BCMath.

https://wiki.php.net/rfc/support_object_type_in_bcmath

One more suggestion - might it be worth adding a `format` function to the new BcNum class? This would be similar to the existing number_format function, but would avoid the need to lose precision by converting to float first.

--------------FxEYpiQQxnLepkel0Y7dwIje--