Round a decimal to the nearest quarter in C#

Posted by bplus on Stack Overflow See other posts from Stack Overflow or by bplus
Published on 2010-05-13T11:11:32Z Indexed on 2010/05/13 11:14 UTC
Read the original article Hit count: 175

Filed under:
|
|

Hello, Is there a simple way in c# to round a decimal to the nearest quarter i.e. x.0, x.25, x.50 x.75 for example 0.21 would round to 0.25, 5.03 would round to 5.0

Thanks in advance for any help.

© Stack Overflow or respective owner

Related posts about rounding

Related posts about c#