SAP Knowledge Base Article - Public

2794933 - Decimal field automatically rounding up the number base on Decimal Precision

Symptom

Value of a Decimal Field automatically rounding up base on Decimal Precision entered.

Environment

SAP SuccessFactors Metadata Framework

Reproducing the Issue

Assuming that the Decimal Precision entered is 2.

1.Go to Manage Data

2. Select the MDF Object

3. Choose the Object data created

4. Insert new record or Make Correction

5. Enter value on a custom Decimal field.

  • Example: 5.787

6. Save the changes.

7. Notice that number will be round up as 5.79

Cause

A rounding off will occur in the UI according to length of the decimal precision specified in the "Configure object definition".

Resolution

This is working as designed. When exceeding the length of the decimal precision, a rounding off will occur in the UI according to length of the decimal precision specified in the "Configure object definition".

Note:

Decimal precision has a built-in-logic that doesn't consider non-significant numbers like "zero". For example, Decimal Precision entered is 2 and the value entered is on the field is 4.70, the system will automatically eliminate the zero and make it 4.7.

See Also

Validation for MDF fields maximum length

Keywords

decimal precision, decimal, precision, MDF, configure object definition, field attribute, field , KBA , LOD-SF-MDF , Metadata Framework , Problem

Product

SAP SuccessFactors Employee Central all versions