Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Use round function to rounding to 2 decimal places

Summary:

Use round function to rounding to 2 decimal places

Content (please ensure you mask any confidential information):

Hi experts,

I working in data maping but I need round a field that contain for example:


14553.099999999997

I have tried using the following:

number (fn:format-number (round(ns48:WeightValue), "#.00" ))

but it doesn't work because it only returns:
14553

What is the correct way to round decimal to 2 places?

Regards.

Version (include the version you are using, if applicable):

3


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!