Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124362 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 1A91E1A00B7 for ; Wed, 10 Jul 2024 18:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720634936; bh=r7SB1l29oZVy4G48oJ648FAinj5a0tgPCZ+M37yXrcE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hSdGwpD8I3k5020OLWaFPyq/hKnLE22zc7ETHXm7tF3YVufkwvSHPYl+i7UhUcThT Bn7pRoGwX0UhLurVpSNYYwZE6TGRe3s/75wzyVCm3XKWXt90BmUrpmc8fZu207u4Al RczKNT2+YPLgtWGOFd/9vFyUqGwjHQEnOP/xjVJWUI3V+hSVyNcpQdR9T8OZUXgWFe pxRcsz1E0MZzFa2GYsYYQ95jOX9cAaCv8SoNo5L21Ku2zYzkC3GcumObX+yOSSDvrX N0T1ePiz/ksNZfIt4cqVZpXlnM98MSSHgRM9GOg4Mg5lv1uN1JGga6HMaXcKF9hDPD XC7GC4TvVItQQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F29D180C87 for ; Wed, 10 Jul 2024 18:08: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 autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Wed, 10 Jul 2024 18:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1720634848; bh=JKfjW+DoiS6yPFJQMr3nMCuwowI+BFk+Cbhha2yIbu0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=jh+yH/1tGpmh81Ip2FWrA2innZN6AkJKLynaxcKlOTIomD4NcYfK1C/F6KYddP0eD eSFPv8vRlQ9aywR7AGN+spP60k6HWVC29VypJnu6yM3vGzCwfSE41jcZ8XrfKuJV3j yQdBqQ666Gff2L9wOK0zImXjiia4kfPrhzXud9Hfg2AUDH2XSzFYhKHRrdiesIWW/M pIJXwieymgyfG3Ig4JKyqGf1CQE1F8eE/UzCLY6jgyXKxU1tnazW1YkSAi8wGOC1Gp mk26ZRd1T+Gt6p8no3H7XtgScOD+kMOC9YL1/RmAKmiQ/PeJRy1lPDRC+6tS2LRrFd D4I6wegiB71NA== Message-ID: Date: Wed, 10 Jul 2024 20:07:27 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [Discussion] Allow int type argument to BCMath function To: Jordan LeDoux Cc: Saki Takamachi , Juliette Reinders Folmer , internals@lists.php.net References: <668B4C78.2000808@adviesenzo.nl> <8FA0DE3B-2AF4-4110-9836-14E035DC8169@sakiot.com> <2ac2914f-1672-4f7a-863b-86b6692bff60@bastelstu.be> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 7/9/24 22:27, Jordan LeDoux wrote: > I do not understand the argument for accepting one but not the other. > That's fair enough. I do still consider accepting 'int' to be less unsafe than accepting 'float', because the behavior of ints can be reasoned about more easily and because they to not experience implicit rounding. I do not particularly care whether or not 'int' is accepted or not for that reason, but I care about 'float' not being accepted. So perhaps it's best to accept neither as you suggested. Best regards Tim Düsterhus