RFR: 4511638: Double.toString(double) sometimes produces incorrect results [v5]

Raffaello Giulietti raffaello.giulietti at gmail.com
Wed Nov 17 14:18:05 UTC 2021


Hi Suminda,

please read my reply to you from May
https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-May/077081.html


Greetings
Raffaello


On 2021-11-17 14:54, Suminda Sirinath Salpitikorala Dharmasena wrote:
> On Mon, 15 Nov 2021 19:31:09 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
>>    
>>    Enhanced intervals in MathUtils.
>>    Updated references to Schubfach v4.
> 
> Also there is Dragonbox algorithm which might be faster: https://github.com/jk-jeon/dragonbox/blob/master/other_files/Dragonbox.pdf
> 
> -------------
> 
> PR: https://git.openjdk.java.net/jdk/pull/3402
> 



More information about the core-libs-dev mailing list