Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124378 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 1B8BE1A00B7 for ; Thu, 11 Jul 2024 01:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720662673; bh=/0HgJe8zacoRBLCrzXVogWfU0VWvbh6ED7eEh1giva4=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=EGHG0+NkKOuYVLe322+KyUa0lCeAY+JvSOjCQv0SoCQ+5zpkASuTEadXIpit1CBhb OImX2efl0KFlQGndxdirEck2oOJ20MsCWlM2nim5+ZaAtC73KKMlM7y+lOG9O3CktX LrlVC0q+BXnkqSgDAtF4lsVjwntSVz3BY6nz4P3DQ6CtJdbs/dyfae1YugTLFe99Mp b8yVIKHXmX1zpDGa/exTDtdhXcjt3Tt9HhW6jJc7RUJXtfmxn+kCMXbJJulxAGn+bk p1VuA28LcNTUehkSBKYVOXmXk3xP2uwlvLZaNWKNOHeaa2VpQy3a0P3ZAkSPAj8PvP PwrIAkPUdhL9Q== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A43A0180056 for ; Thu, 11 Jul 2024 01:51:11 +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 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, 11 Jul 2024 01:51:10 +0000 (UTC) Received: from smtpclient.apple (58.14.156.220.rev.vmobile.jp [220.156.14.58]) (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 BC4BE4011B; Thu, 11 Jul 2024 10:49:39 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1720662579; bh=/0HgJe8zacoRBLCrzXVogWfU0VWvbh6ED7eEh1giva4=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=hz6IHqMINtmbq8Ak5CPUKuELnOc10DPh7GvuUNbugTqgJ2MC+N3jLporSMgwXTdOg wsW7lBtKX/2+4z+QuXdPaH/K6TX+zRIkDU4nsRJtqmEOFqy8eeQgJfWnf0322SUya/ p+hXsuoJLAn3+9xcpmOE7hL8jjgGRNmyjSLhPBlY= 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] Allow int type argument to BCMath function Date: Thu, 11 Jul 2024 10:49:27 +0900 Message-ID: <1655D14E-019E-42D9-B046-028C2405ABAA@sakiot.com> References: Cc: Jordan LeDoux , Juliette Reinders Folmer , internals@lists.php.net In-Reply-To: To: =?utf-8?Q?Tim_D=C3=BCsterhus?= X-Mailer: iPhone Mail (21F90) From: saki@sakiot.com (Saki Takamachi) Hi Tim, > That's fair enough. >=20 > I do still consider accepting 'int' to be less unsafe than accepting 'floa= t', because the behavior of ints can be reasoned about more easily and becau= se they to not experience implicit rounding. >=20 > I do not particularly care whether or not 'int' is accepted or not for tha= t reason, but I care about 'float' not being accepted. So perhaps it's best t= o accept neither as you suggested. Yes, I had completely forgotten about casting priorities. So, at least I don't plan on including it in 8.4, and may even retract the c= hange altogether. Regards, Saki=