# [RFC] [VOTE] Change the edge case of round()

- Thread: https://externals.io/message/121794
- Original archive: https://news-web.php.net/php.internals/121794
- Started by Saki Takamachi on 2023-11-24T00:31:16+00:00
- Messages: 5
- RFC: Change the edge case of round() (Declined) — https://externals.io/rfc/change_the_edge_case_of_round.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #121794 — Saki Takamachi — 2023-11-24T00:31:16+00:00

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

Hi internals,

I started voting on my RFC "Change the edge case of `round()`”.

Voting will end December 8th, 00:00 GMT.

https://wiki.php.net/rfc/change_the_edge_case_of_round

Regards.

Saki

---

## #121894 — Jakub Zelenka — 2023-12-01T11:53:23+00:00

URL: https://externals.io/message/121794#121894 · In reply to: #121794

> Hi internals,
>
> I started voting on my RFC "Change the edge case of `round()`”.
>
> Voting will end December 8th, 00:00 GMT.
>
> https://wiki.php.net/rfc/change_the_edge_case_of_round
>
>
I have been thinking about this one for a bit and I voted no at the end. I
would probably pick the new behaviour if designing a new function like this
but considering that it's been around for long time in this form, I don't
think it's worth to be changed as it introduces slight BC break that might
difficult to figure out. Also the old behaviour might be more intuitive for
users so it does not seem completely wrong to me to keep it.

Cheers

Jakub

---

## #121913 — Derick Rethans — 2023-12-03T16:32:11+00:00

URL: https://externals.io/message/121794#121913 · In reply to: #121794

>Hi internals,
>
>I started voting on my RFC "Change the edge case of `round()`”.
>
>Voting will end December 8th, 00:00 GMT.
>
>https://wiki.php.net/rfc/change_the_edge_case_of_round
>
>Regards.
>
>Saki
>--
>
>To unsubscribe, visit: https://www.php.net/unsub.php

I've voted no, but only because I think that because this is technically a documented (through RFC) BC break, it should wait for PHP 9, and not for any 8.*.

cheers
Derick

---

## #121918 — Stanislav Malyshev — 2023-12-03T22:08:04+00:00

URL: https://externals.io/message/121794#121918 · In reply to: #121913

Hi!

> I've voted no, but only because I think that because this is
> technically a documented (through RFC) BC break, it should wait for
> PHP 9, and not for any 8.*.

I think so too, it's a frequently used function, and while the argument 
for the change look convincing, changing it an advanced point version 
still sounds like not a good idea.

-- 
Stas Malyshev
smalyshev@gmail.com

---

## #121951 — Saki Takamachi — 2023-12-08T00:32:11+00:00

URL: https://externals.io/message/121794#121951 · In reply to: #121794

Hi all,

Voting is now closed. As a result of the vote, this RFC was rejected. (7 in favor, 8 against)
Therefore, as stated in the RFC, the following pull request will be adopted to fix the bug in `round()`.

https://github.com/php/php-src/pull/12268

Thank you for all your votes.

Regards.

Saki
