Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124175 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 B29D91A009C for ; Tue, 2 Jul 2024 11:05:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719918426; bh=eQ4h+qQvyVlPlMG0heH/YxcwsI3YUVhL/6c4C538fS4=; h=From:Subject:Date:References:To:In-Reply-To:From; b=R/jWFlEnf46ueO/MVECRQpGbOeGp17WtCK0vA4XQse028Wlfw/utTB56o9D3LocsZ QkuBDQkvWC1GhNTOSRLIc5KlZlsxkmmr/HyDh9sAGWTwZrwvREtrB/jKYStdCi7T+3 LdVUyBr6j0f3kvP5YV9sCrRneYtHT7g4t/AUo6GwstEau0UgzMjW5Vhb71P+R/hI8r 8HWIMgRhfBJXYGxz/9vIptfUbo8EDtOLW81Oxw+oXv6MX9eJQGK8n+pO5CldmIeY9D FGfmXNJISQ6GT6QfIinke9ntPYHP06TBWWpXrI8aLC9AdZfpFOBgtrhKLkde3cGUbb JbJ1gHXBNCnWQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 11F9418005F for ; Tue, 2 Jul 2024 11:07:05 +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=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 2 Jul 2024 11:07:03 +0000 (UTC) Received: from smtpclient.apple (unknown [117.55.37.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id E63FF4011E for ; Tue, 2 Jul 2024 20:05:39 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1719918339; bh=eQ4h+qQvyVlPlMG0heH/YxcwsI3YUVhL/6c4C538fS4=; h=From:Subject:Date:References:To:In-Reply-To:From; b=rQ5KnIruBoyt0EN02T4vKCKgit1P2mUfEZqCqJKouJQrE4DylbhqWo8JN7ObLXfkF 5Q6DgpntY3KNvIRL3I5c3RSGjA9Rm2yA8m85dIxiWBlrSjBQ+s05OrdPNC2wFlxlaw nfcmU/g5FncZn/1D/ABiBFTkdtFLUcu9hGlC4bbw= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: [PHP-DEV] Re: [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior Date: Tue, 2 Jul 2024 20:05:27 +0900 References: To: php internals In-Reply-To: Message-ID: <101A7B8C-6BC3-4E9D-A5CB-059380E34332@sakiot.com> X-Mailer: Apple Mail (2.3774.600.62) From: saki@sakiot.com (Saki Takamachi) Hi all, > Hi internals, >=20 > Created a follow-up RFC for the BCMath\Number class. This RFC also = contains proposed changes to GMP's bool cast. I have proposed similar = changes to BCMath, so for procedural efficiency I have combined them = into the same RFC. >=20 > Note that although they are combined into one RFC, these votes are = taken independently. >=20 > https://wiki.php.net/rfc/fix_up_bcmath_number_class >=20 > Regards, >=20 > Saki Added changes to RFC. It is a proposal to remove all rounding during = calculations due to convenience issues and the fact that the = functionality is "excessive" to begin with. To be precise, it will have the same truncation behavior as the existing = BCMath function, making it impossible for users to change this behavior = during calculations. If the user wants to perform rounding, they must = always use the `round()` method. Regards, Saki=