I seriously doubt you need to round anything, ever. This is very, very rarely needed. It looks like you want somewhat
different thing: you
only need to present some value in a form of a string as a rounded value, for presentation purposes only; and this is a different story. This is not rounding per se but formatting, much more appropriate thing.
Please use
System.Decimal.ToString
with appropriate format specifier:
http://msdn.microsoft.com/en-us/library/fzeeb5cd.aspx[
^],
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx[
^],
http://msdn.microsoft.com/en-us/library/0c899ak8.aspx[
^].
Basically, you would need to use the custom format with '0', '#' and '.' placeholders (the last link). Behind the scene, your data will be properly rounded, but without any risk of rounded values sneaking into the calculations, so it's not only
easier, but
also much safer.
—SA