# [VOTE] [RFC]

- Thread: https://externals.io/message/121680
- Original archive: https://news-web.php.net/php.internals/121680
- Started by Jorg Sowa on 2023-11-15T17:25:09+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #121680 — Jorg Sowa — 2023-11-15T17:25:09+00:00

URL: https://externals.io/message/121680#121680

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

---

## #121733 — Ben Ramsey — 2023-11-20T20:18:06+00:00

URL: https://externals.io/message/121680#121733 · In reply to: #121680

> 
> 
> 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

---

## #121737 — Jorg Sowa — 2023-11-20T21:19:48+00:00

URL: https://externals.io/message/121680#121737 · In reply to: #121733

Thank you for catching this. This is a mistake that I have just fixed. This
part states now:

> ROUND_TOWARD_ZERO (equivalent of PHP_ROUND_TOWARD_ZERO) alias of
ROUND_DOWN
<https://www.php.net/manual/en/class.numberformatter.php#numberformatter.constants.round-down>>
ROUND_AWAY_FROM_ZERO (equivalent of PHP_ROUND_AWAY_FROM_ZERO) alias of
ROUND_UP

<https://www.php.net/manual/en/class.numberformatter.php#numberformatter.constants.round-up>
I have been caught myself by the vague terms of rounding up and rounding
down.

Kind regards,
Jorg
