# Extending round() to handle fraction part up/down

- Thread: https://externals.io/message/97422
- Original archive: https://news-web.php.net/php.internals/97422
- Started by Anatol Belski on 2016-12-15T14:53:32+00:00
- Messages: 1
- 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

---

## #97422 — Anatol Belski — 2016-12-15T14:53:32+00:00

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

Hi,

There's a PR https://github.com/php/php-src/pull/1658 about the topic. The
implementation adds the `ceil()`/floor() equivalent for the fraction part of
the float to the `round()` function. The PR sits there for long, the change
itself looks useful and self-contained, the current behaviors are not
changed. I would like to handle it on my next time frame and put it into
master, if there is no objection. If someone is interested to check and give
a comment, please do.

Thanks

Anatol
