ICU - NumberFormatter::ROUNDING_MODE default ROUND_HALFEVEN
| From: | Hans Krentel via internals | Date: | Thu, 03 Aug 2023 18:55:14 +0000 |
| Subject: | ICU - NumberFormatter::ROUNDING_MODE default ROUND_HALFEVEN | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-120880@lists.php.net to get a copy of this message | ||
This is a proposal to consider to discuss/change the default value of
NumberFormatter::ROUNDING_MODEfrom current
NumberFormatter::ROUND_HALFEVENto
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