History log of /php-src/ext/intl/tests/formatter/rounding_modes.phpt (Results 1 – 3 of 3)
Revision Date Author Comments
# 117b8dee 20-Jan-2024 Máté Kocsis

Add ifdef for NumberFormatter::ROUND_HALFODD

According to the docs, UNUM_ROUND_HALF_ODD is only available since ICU 69.0. The build on Travis currently fails probably because it uses a lower

Add ifdef for NumberFormatter::ROUND_HALFODD

According to the docs, UNUM_ROUND_HALF_ODD is only available since ICU 69.0. The build on Travis currently fails probably because it uses a lower version.

show more ...


# 8cc472d5 18-Jan-2024 Ayesh Karunaratne

ext/intl: Add NumberFormatter::ROUND_HALFODD

The NumberFormatter::ROUND_HALFEVEN constant exists in PHP already, but its counterpart ROUND_HALFODD was missing.
This adds it, using `UNUM_

ext/intl: Add NumberFormatter::ROUND_HALFODD

The NumberFormatter::ROUND_HALFEVEN constant exists in PHP already, but its counterpart ROUND_HALFODD was missing.
This adds it, using `UNUM_ROUND_HALF_ODD`

Close GH-13191

show more ...


# 94ddc74c 21-Dec-2023 Jorg Adam Sowa

RFC: Add 4 new rounding modes to round() function (#12056)

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

Co-authored-by: Tim Düsterhus <tim@bastelstu.be>