<i18n dev> RFR: 8174722: Wrong behavior of DecimalFormat with RoundingMode.UP in special case
Justin Lu
jlu at openjdk.org
Wed May 24 00:38:10 UTC 2023
On Tue, 23 May 2023 23:30:11 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Note there are some hazards here with respect to the numerical values of double and the decimal string used to represent the double; in exact terms:
>
> ```
> jshell> new BigDecimal(1.0001)
> $2 ==> 1.0000999999999999889865875957184471189975738525390625
>
> jshell> new BigDecimal(0.0001)
> $3 ==> 0.000100000000000000004792173602385929598312941379845142364501953125
> ```
Thanks for bringing that to my attention Joe. I will re-evaluate how I test the changes then.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14110#issuecomment-1560295694
More information about the i18n-dev
mailing list