RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v2]
Raffaello Giulietti
duke at openjdk.java.net
Fri Oct 15 08:08:48 UTC 2021
On Fri, 16 Apr 2021 11:30:32 GMT, Raffaello Giulietti <duke at openjdk.java.net> wrote:
>> Hello,
>>
>> here's a PR for a patch submitted on March 2020 [1](https://cr.openjdk.java.net/~bpb/4511638/webrev.04/) when Mercurial was a thing.
>>
>> The patch has been edited to adhere to OpenJDK code conventions about multi-line (block) comments. Nothing in the code proper has changed, except for the addition of redundant but clarifying parentheses in some expressions.
>>
>>
>> Greetings
>> Raffaello
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
>
> 4511638: Double.toString(double) sometimes produces incorrect results
"All have the form 2^q10^(-k)"
(Paul Zimmermann's reply)
not quite, for example 0x1.00003eaba12cap-804 = 2251808225167717/2^855 is not of this form, but these cases come from the continued fraction expansion of 2^q10^(-k).
(my reply)
Right, it is correctly stated in the test class (to be pushed) but incorrectly in my previous post
Raffaello
-------------
PR: https://git.openjdk.java.net/jdk/pull/3402
More information about the core-libs-dev
mailing list