Here I am limiting the decimal places to 3 in a double.
double old_value = 3.142356;
double new_value = Math.Round(old_value, 3);
:)
Posts on .Net technology by Yasser R Shaikh. We have moved : http://yassershaikh.com/
Here I am limiting the decimal places to 3 in a double.
double old_value = 3.142356;
double new_value = Math.Round(old_value, 3);
:)
2011 ·Code-Studio by yrus.
0 comments:
Post a Comment