Rounding the result

Hi all,

you we can rounding the result to two decimal places. E.g. I have in excel:
100 - my output is 100, I would like to get string 100,00
100,50 - my output is 100,5, and I also would like to get 100,50
Generally I would like to my final string has two decimal places.


Try below.

Math.Round([DECIMAL], 2, MidpointRounding.AwayFromZero)
1 Like


it doen’t work.
If I add 100 + 200, my result is 300, but should be 300,00. Or 100,1 + 200,5, the result is 200,6, should be 200,60 (I need to have two decimal places always).