Re: [PHP-DEV] Add bcround, bcfloor, bcceil to BCMath.

2023-09-29 Thread Saki Takamachi
Hi, George. > I think regardless of the issues around round(), ceil(), floor(), etc. > having the equivalent functions for BCMath makes a lot of sense to me. I'm relieved to receive positive feedback. I'll start writing the RFC. There is no doubt that the idea came from the `round()` problem, b

Re: [PHP-DEV] Add bcround, bcfloor, bcceil to BCMath.

2023-09-29 Thread G. P. B.
On Tue, 26 Sept 2023 at 11:10, Saki Takamachi wrote: > Hi, internals. > > I'm currently working on renovating the `round()` function. > > The current `round()` function rounds a value like 0.285 (0.28499) to > 0.29 using pre-round. > This is a mistake for FP, so discussions are underway to ab

[PHP-DEV] Add bcround, bcfloor, bcceil to BCMath.

2023-09-26 Thread Saki Takamachi
Hi, internals. I'm currently working on renovating the `round()` function. The current `round()` function rounds a value like 0.285 (0.28499) to 0.29 using pre-round. This is a mistake for FP, so discussions are underway to abolish such pre-round behavior. However, there is definitely a us