How to round up/down numbers to .25 .50 .75 and .00

Hello,

As the title says, how to round up/down numbers to the following criteria. The number has to be rounded up/down to the number that is closest by

1 Like

math.Round(“yourValue”,3)

3 - number of decimals

Cheers

Hi,

Can you try the following expression?

(Math.Round(d*4)/4).ToString("0.00")

note : d is double variable

Regards,

1 Like

you are a magician with numbers, thanks!

1 Like

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