Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122925 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 824171A009C for ; Thu, 4 Apr 2024 09:03:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712221425; bh=PNgHH8IrxO6mSKYuJR8S18yOZh9Z+fOkniD1QWeozYU=; h=From:Subject:Date:References:To:In-Reply-To:From; b=FKbuNs+wycOWzLDwXaYNwEYwIQMrb8mIvnPmJ0DoFXba7pl5HLStB2PLGhqMeKyRG T+CGIvAg7HUWHvVOWr+ZT5Eq9C0+bQvJQ2dydqsM1kyQfjFnyqKl6QADS58gXQ7Kri amMoaxrzZaZxkTIagssw0M0GkB8CVQxHjX1Jljuwy8wHn8BQ6Hu6xH5sRDaS6RryST q+iUDTwXa/w87Wtl0uFN3wvOB6ZUKPEPOmQ+9X5qvur2FbXbkm9k8SQIWWktKJFsSZ FFyk2SUjtz8mAFgfqLrGTD5YWQnkGZ96I/uMP9nrWRWMFfe50ZqcFQycC6L2h8YVZp 4s+MJ7ciZpEDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 08673180074 for ; Thu, 4 Apr 2024 09:03:44 +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: No X-Envelope-From: Received: from mail.gna.ch (mail.gna.ch [212.45.196.109]) (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 ; Thu, 4 Apr 2024 09:03:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 770D03A0F57 for ; Thu, 4 Apr 2024 11:03:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1712221392; bh=PNgHH8IrxO6mSKYuJR8S18yOZh9Z+fOkniD1QWeozYU=; h=From:Subject:Date:References:To:In-Reply-To; b=gF7vPf0zi5FWnEjg9D+x9RwLr30axpljY3nRrusm1vi7AwiY4g3UgdFuKhHWwMDJp 6SRFSqrCDNO7wKLWR6vzDjgxhH9NW6O0rbzO7q6GOJNSHOCT7jMXspE1wszmOcrYtO 58SQsb7/ZaAU+QHui8DnuRPkaKPRkN0hAu2XAET8= X-Virus-Scanned: amavisd-new at example.com Received: from mail.gna.ch ([127.0.0.1]) by localhost (darkcity.gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dg_IpZz5mTBh for ; Thu, 4 Apr 2024 11:02:38 +0200 (CEST) Received: from smtpclient.apple (unknown [IPv6:2a02:1210:2ea4:cf00:a009:5564:9d2a:4f19]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 0CB8F3A0F3C for ; Thu, 4 Apr 2024 11:02:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cschneid.com; s=default; t=1712221327; bh=PNgHH8IrxO6mSKYuJR8S18yOZh9Z+fOkniD1QWeozYU=; h=From:Subject:Date:References:To:In-Reply-To; b=E12rW8loHagWBaqcjnQVLcBP2jWXBamv4LP51lsHJnuIdaDSwy7yII05CnT3F/wiq Bh4UvJUBCsrVchvq4k/zIcGWDUPsil5AFDGAlzHNKJsRlM9W/YwfdutnkSBqnLBrcZ wK9XmEBCIIWEJXuOQzSu7B4WTAYD6rfaQ0LjIYaI= 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.500.171.1.1\)) Subject: Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath Date: Thu, 4 Apr 2024 11:02:06 +0200 References: <3C017A00-AAC4-44E3-B7A2-59B85BE7D59C@sakiot.com> To: php internals In-Reply-To: <3C017A00-AAC4-44E3-B7A2-59B85BE7D59C@sakiot.com> Message-ID: <9A6A1A9E-EE36-497B-AF8A-3C6F64F8E864@cschneid.com> X-Mailer: Apple Mail (2.3774.500.171.1.1) From: cschneid@cschneid.com (Christian Schneider) Am 04.04.2024 um 08:29 schrieb Saki Takamachi : > I added some examples, corrected incorrect explanations, etc. Now that = the specifications have been fairly finalized and the RFC has been = clarified, I would like everyone to check it out again. >=20 > https://wiki.php.net/rfc/support_object_type_in_bcmath Looks very promising! The default value for rounding is PHP_ROUND_TOWARD_ZERO. Is this because = it is the same as the BCMath functions for consistency only or do you = expect this to be the most used rounding mode? I didn't find any discussion about this choice, sorry if I missed it. Regards, - Chris