This is a proposal to consider to discuss/change the default value of
NumberFormatter::ROUNDING_MODE
from current
NumberFormatter::ROUND_HALFEVEN
to
NumberFormatter::ROUND_HALFUP
.
I got the attention of this from an unrelated user in an online forum
(SO) and also checked with MDN which has it as default as well. [1]
If I'm not mistaken, ROUND_HALFUP is the rounding with number_format()
and the default rounding mode with round().
Feedback from actual ICU caretakers would be good though, because me
is entirely from a users perspective, also I know how to change
attributes to non default values, this is not a programming question
I have.
I hope you don't mind the attention to detail.
Best
-- hakre
[1]:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#roundingmode
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php