My Oracle Support Banner

To_number Function Returns Wrong Value In Etext Templates On Specific Numbers (Doc ID 2294377.1)

Last updated on FEBRUARY 22, 2019

Applies to:

BI Publisher (formerly XML Publisher) - Version 10.1.3.4.2 and later
Information in this document applies to any platform.

Symptoms

On : 10.1.3.4.2 version, Designing Layout Templates

To_number function Returns Wrong Value In etext Templates on specific values

Below is the piece of code which is showing abnormal behavior when used in Etext template:
-------------------------------------------------------------------------------------------------------------------------
to_number((OutboundPayment/DocumentPayable/PaymentAmount/Value)*100)
-------------------------------------------------------------------------------------------------------------------------

The code returns:
Incorrect value 27191.000000000004 instead of "000000000000027191" for PaymentAmount=271.91
Correct value 000000000000099919 for PaymentAmount=999.19

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
Cause
Solution
References


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