To_number Function Returns Wrong Value In Etext Templates On Specific Numbers

(Doc ID 2294377.1)

Last updated on AUGUST 28, 2017

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

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms