My Oracle Support Banner

DAL Variable Calculation For Real Numbers Is Incorrect. (Doc ID 2707419.1)

Last updated on SEPTEMBER 08, 2020

Applies to:

Oracle Documaker - Version 12.6 and later
Information in this document applies to any platform.


 Subtracting two real numbers together with two digits behind the decimals is returning several digits behind the decimal in the results.

$var1 = 1200.00

$var2 = 1199.99

$var3 = $var1 - $var2

$var3 will have the value 0.0099999999


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.