Re: [RFC] [Discussion] Allow int type argument to BCMath function
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)