Calculation Problem In Division - Decimal Places

(Doc ID 2324030.1)

Last updated on NOVEMBER 03, 2017

Applies to:

Oracle SOA Suite - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.0.0 version, Fabric

ACTUAL BEHAVIOR
---------------
Calculation problem in division - Decimal places

WebService sends Transfers to the external wharehouse application system implemented in the client.

The problem is occurring in the transformation:

XML Input:
  
  <ns0:tsf_qty>37.1
  <ns0:tsf_po_link_no>5.3
 
XSL:
 
XML Output:
  
  7.000000000000001
 

In the transformation file the quantity value is calculated by the division between tsf_qty and tsf_po_link_no.

The result of this calculation (37,1 / 5,3) should be 7, but after the transformation the value of quality is 7.000000000000001.

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