Re: [RFC] [Discussion] Allow int type argument to BCMath function

From: Date: Wed, 10 Jul 2024 18:07:27 +0000
Subject: Re: [RFC] [Discussion] Allow int type argument to BCMath function
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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

Thread (12 messages)

« previous php.internals (#124362) next »