How to fix the Oracle error PLW-06018: an infinity or NaN value is computed or used?
In this post, you’ll learn more about the Oracle ErrorPLW-06018: an infinity or NaN value is computed or used with the details on why you receive this error and the possible solution to fix it.
Oracle Error Description
PLW-06018: an infinity or NaN value is computed or used
Reason for the Error PLW-06018: an infinity or NaN value is computed or used
An operation near this location computes or uses an infinite NUMBER, BINARY_FLOAT, or BINARY_DOUBLE value or a NaN BINARY_FLOAT or BINARY_DOUBLE value.
How to fix the Error PLW-06018: an infinity or NaN value is computed or used ?
You can fix this error in Oracle by following the below steps
The compiler has determined that an operation near this location computes or uses either an infinity or a not-a-number (NaN) value. This may indicate a programming error; consider rewriting the code. If the intention is to use a BINARY_FLOAT or a BINARY_DOUBLE non-numeric value, use the appropriate constant from STANDARD rather than computing the value. Some valid uses exist for these values; the warning will still appear in those cases. The use of infinite NUMBER values is not well-defined and should be avoided.
Leave Your Comment