Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122926 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 1BCB11A009C for ; Thu, 4 Apr 2024 09:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1712224017; bh=5YIwPo7DWCE20pel0Y0957iDRU1sEpno3asPalbjbcY=; h=Subject:From:In-Reply-To:Cc:Date:References:To:From; b=L1uzw6PBiEYJT04KADtfruZMX68QyUccbk+tU/SjixXHcmlU7UW1F90BxzzO4DcQ3 TV1JAmywN1Gb80pw1lczh/gKq+KUOQsz1e1Z0Fz5zwMX1nSwlukhSeTOpY4MsIxo2K WTc5Gk74u+fW1eWOtlIgEqpgX4uiasRRij3vHHArdiSQWKBQ0f0Ui2U8zV4yVn8Wds PsKb7QAr1PwpWDQASFzNfbdUecKsxWr5SezKy+A0vB5dxx/dqK7arP+vs5Vmk9PAcr KRBC1KHr7Ld1fClSydrWXmIkbbodB0+TVZowsFM7vX51fAQ4fSsKbzmA8awq7PEKXY zTsYkEDs0kQOw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7911E1805CD for ; Thu, 4 Apr 2024 09:46:56 +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.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 ; Thu, 4 Apr 2024 09:46:55 +0000 (UTC) Received: from smtpclient.apple (unknown [117.55.37.250]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id 5D6FA401F7; Thu, 4 Apr 2024 18:46:24 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1712223984; bh=5YIwPo7DWCE20pel0Y0957iDRU1sEpno3asPalbjbcY=; h=Subject:From:In-Reply-To:Cc:Date:References:To:From; b=xqsca0AE1GWxUOxroChRMLrhzSXaq5xd6s2K1uSUzHk1a1fLnHI2bT8nrU88HphWO 2wwkW/RjqP/Gr3C5JuSlDk9x1N+mnsNsasLjaJg+4YZ8qYauFk6OJKSZil3a8X8wqD SahgAHrVWkpetIcyx7snhfH8rlwJBFHLtW00y3GQ= 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 (1.0) Subject: Re: [PHP-DEV] [RFC] [Discussion] Support object type in BCMath In-Reply-To: <9A6A1A9E-EE36-497B-AF8A-3C6F64F8E864@cschneid.com> Cc: php internals Date: Thu, 4 Apr 2024 18:46:11 +0900 Message-ID: <347FFCD0-287F-49A7-B71E-42EAFF78B077@sakiot.com> References: <9A6A1A9E-EE36-497B-AF8A-3C6F64F8E864@cschneid.com> To: Christian Schneider X-Mailer: iPhone Mail (21D61) From: saki@sakiot.com (Saki Takamachi) Hi Chris, > Looks very promising! >=20 > The default value for rounding is PHP_ROUND_TOWARD_ZERO. Is this because i= t is the same as the BCMath functions for consistency only or do you expect t= his to be the most used rounding mode? > I didn't find any discussion about this choice, sorry if I missed it. Thank you! Yes, you're right, I've made it match the existing behavior of BCMath. And r= est assured, there has been no discussion about that yet. I haven't thought about it in detail yet, but maybe there are other ideal in= itial values? Regards. Saki=