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

Raffaello Giulietti duke at openjdk.java.net
Wed May 11 09:09:49 UTC 2022


On Tue, 10 May 2022 03:22:01 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   4511638: Double.toString(double) sometimes produces incorrect results
>
> src/java.base/share/classes/java/lang/Double.java line 33:
> 
>> 31: import java.util.Optional;
>> 32: 
>> 33: import jdk.internal.math.FloatingDecimal;
> 
> Presumably the FloatingDecimal import here and in Float can be removed.

`FloatingDecimal` is used in the `parse*(String)` methods

-------------

PR: https://git.openjdk.java.net/jdk/pull/3402


More information about the core-libs-dev mailing list