My Oracle Support Banner

E-IB: Rounding Issue When A Value Is Read Using GetPropertyByName ("<Name>") From A Document (Doc ID 2931528.1)

Last updated on JUNE 09, 2023

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.57 and later
Information in this document applies to any platform.

Symptoms

Rounding issue when a Value is read using GetPropertyByName ("") from a document.

When updating the Decimal length of particular primitive under documents using the document builder it works only until 6 decimal places.  Even if specify the decimal length to 8, it still rounds it off to 6 decimals. Below is an example:

Scenario 1 (This is correct)

Value in File: 0.6634306

Decimal length in document: 6

Resultant value returned by GetPropertyByName("<Name>") code: 0.663431

 

Scenario 2 (This is Wrong)

Value in File: 0.6634306

Decimal length in document: 7

Resultant value returned by GetPropertyByName("<Name>") code: 0.663431



The issue can be reproduced at will with the following steps:
1. Main Menu > PeopleTools > Documents > Document Builder
2. Update the Decimal length of the particular primitive under documents

Changes

 

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


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