How to get just two number after decimal places

Hello friends. can anyone help me with the below problem.

8.888888 expected op 8.88

8.88 expected op 8.88

8.8 expected op 8.80

8 expected op 8.00

Thanks in advance.

1 Like

Assign Activity:
originalNumber = 8.33

Assign Activity:
roundedNumber = Math.Round(originalNumber, 2)

Duplicate Post :How to truncate value after 2 decimal place

Please help with this

eg i have number=8.88888
Expected output=8.88

The above solution is rounding off the number it is giving 8.89 but i need 8.88

HI @aslam_ali1

try this it is working as your need.

Gayathri M K

Hi @aslam_ali1

Try this

Math.Floor(Input * 100) / 100

Hope this helps!!

Refer this thread
I have shared a workflow sample as well

Cheers @aslam_ali1

We are some parts critical on String Acrobatics for number parsing. But as we can enhance the approach we can start with


HarmonizedNumber =


Thank you @ppr it works awesome

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.