JDK 26 changes DecimalFormat to use the same floating-point formatting algorithm as Double.toString() and Formatter, which was enhanced in JDK 21. This fixes inconsistencies where DecimalFormat and Formatter produced different outputs for certain double values. A compatibility flag (-Djdk.compat.DecimalFormat=true) temporarily

2m read timeFrom inside.java
Post cover image
Table of contents
DecimalFormat Formats Floating-Point Values with the Double.toString(double) AlgorithmCall to Action

Sort: