My Oracle Support Banner

Floating Point Calculation Discrepencies between Different Java Versions (Doc ID 2272250.1)

Last updated on JUNE 25, 2020

Applies to:

Java SE JDK and JRE - Version 6 and later
Information in this document applies to any platform.


Differences in the results of floating point calculations are observed between different Java SE versions.  For example, floating point calculations in Java SE 7 Update 25 and previous versions produce the same results whereas, Java SE 7u40 and later versions produce a different result.   This causes floating point calculations to change after upgrading from Java SE 6 to Java SE 8 or later patch updates of Java SE 7 or even when applying patch updates from Java SE 7u25 (or earlier) to 7u40 or later.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.