Wednesday, January 5, 2011

Roundin Values in C Sharp - RoundOff

If you ever want to round off a value in CSharp … you can always you Math.Round function …

 

e.g.

 

Math.Round(23.435321, 0) // this will round off the figure and remove all figures after decimal points.

 

J

No comments:

Post a Comment