[PHP-DEV] Re: bcmod() behavior is different from what I expected

2024-07-22 Thread Saki Takamachi
>> Hi internals, >> >> I noticed that `bcmod()` behavior is a little different from what I expected. >> >> First, look at the following code for `bcdiv()`: >> ``` >> bcdiv('99', '100', 2); // '0.99' >> ``` >> >> So what should the following code be? >> ``` >> bcmod('99', '100', 2); >> ``` >> >

[PHP-DEV] Re: bcmod() behavior is different from what I expected

2024-07-22 Thread Saki Takamachi
> Hi internals, > > I noticed that `bcmod()` behavior is a little different from what I expected. > > First, look at the following code for `bcdiv()`: > ``` > bcdiv('99', '100', 2); // '0.99' > ``` > > So what should the following code be? > ``` > bcmod('99', '100', 2); > ``` > > The result is