Re: [PHP-DEV] Allow BcMath\Number to work identically to bcmath functions

2025-06-27 Thread Saki Takamachi
> When `BcMath\Number` was introduced it allowed `string|int` method > arguments. According to a separate RFC to allow `int` to the functions this > was done as a performance optimization. Unfortunately this also means it > effectively disallows `float` types because PHP will truncate them to

[PHP-DEV] Allow BcMath\Number to work identically to bcmath functions

2025-06-26 Thread Russell Lee
When `BcMath\Number` was introduced it allowed `string|int` method arguments. According to a separate RFC to allow `int` to the functions this was done as a performance optimization. Unfortunately this also means it effectively disallows `float` types because PHP will truncate them to integers