Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124177 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 B5BA11A009C for ; Tue, 2 Jul 2024 12:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1719922781; bh=AuMv4rUlriFu7PD75naxNePYbYco9H46JFXOF+8QOFs=; h=From:Subject:Date:References:To:In-Reply-To:From; b=S6Vm1exGAOTjIyT75t+wWQo5c+fSIQP4baY+eolq+mzEz95rJybS8ywHCE0LIQc7e 4o4oGnkgRpat5tuaNhnGadASgEQwOXwxOdwqu5SV7TiVno//EsyoMFHu+M+303+lRm wpb5KqbAa2zqWpb/qs9LDhao5i+qiv9ZwmubJwnIeeyjGPulocQf7SstXF4tppsivS wkGRm1ygHUWjL6FxwXcBrDpcm7IyMeFL0noYF3QifAFyHg8Gw9vM2+CBvPEMykDtjk 9FE0paKmz5VD2LxKkqbbeJmi3TkAPXn3rUViqzGi+B9zArMJygO4jLGEaxoa5f7ZS3 gw5hH8QYrjG7g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5DCBE18004A for ; Tue, 2 Jul 2024 12:19:40 +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 12:19:39 +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 21EA04011E for ; Tue, 2 Jul 2024 21:18:15 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1719922695; bh=AuMv4rUlriFu7PD75naxNePYbYco9H46JFXOF+8QOFs=; h=From:Subject:Date:References:To:In-Reply-To:From; b=aeRwjGIDgeyyxdpuHDIEoKEQ7Hq3BejbakDq89KhxKMB4X15FBK6S4fWXCTd44jLA ta5SM3X4gJeTArOo7RybtnQtc8Y31Qq1Our+NCa3KjcbszL/fo36A6AvkvfKdW4bDb /wLBQ18HfYR4jsW8iRS/DTI3I+2G+ji+zGD8ERB0= 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: Re: [PHP-DEV] [RFC] [Discussion] Fix up BCMath Number Class / Change GMP bool cast behavior Date: Tue, 2 Jul 2024 21:18:02 +0900 References: <101A7B8C-6BC3-4E9D-A5CB-059380E34332@sakiot.com> To: php internals In-Reply-To: <101A7B8C-6BC3-4E9D-A5CB-059380E34332@sakiot.com> Message-ID: <362F7222-8E54-489F-B734-B10DA7055A45@sakiot.com> X-Mailer: Apple Mail (2.3774.600.62) From: saki@sakiot.com (Saki Takamachi) > 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. >=20 > 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. >=20 > Regards, >=20 > Saki I also mentioned making the class serializable. Regards, Saki=