Date Subtraction Off By A Fraction 1.0000E-38
(Doc ID 1907661.1)
Last updated on JANUARY 07, 2025
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.4 and laterOracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
When you substract two DATE data types where the difference is only seconds , the value resulted is in a fraction of a day.
Hence , when multiplying by 86400 to convert to seconds a small fraction is added to the result (1.0000E-38) .
This may fail any decision making on comparing the result of subtraction to a know
For example :-
if (date_result = 26 )
<some action>
Changes
The following case demonstrate the behavior:-
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |