> On Nov 15, 2023, at 11:25, Jorg Sowa <jorg.sowa@gmail.com> wrote:
>
> Hello internals!
> I have just opened voting on the RFC to add 4 new rounding modes to round()
> function.
>
> Voting will end November 30th, 00:00 GMT.
>
> Link:
> https://wiki.php.net/rfc/new_rounding_modes_to_round_function
>
> Kind regards,
> Jorg
Under Proposal, you have the following two statements:
> • ROUND_TOWARD_ZERO (equivalent of PHP_ROUND_TOWARD_ZERO) alias of ROUND_UP
> • ROUND_AWAY_FROM_ZERO (equivalent of PHP_ROUND_AWAY_FROM_ZERO) alias of ROUND_DOWN
However, the documentation for ROUND_UP says, “Rounding mode to round away from zero,” and the documentation for ROUND_DOWN says, “Rounding mode to round towards zero.”
So, I think the proposal has the aliases listed backwards.
Please clarify if the proposal is correct or this is a typo.
Cheers,
Ben