RoundOff in ASP.NET C#
Roundoff values using ASP.NET C#,with the help of math function of c#
Roundoff values in ASP.NET C#
Hi friends,
//if you have value 12.27874 and you want 12.28 then
//use Math.Round function
double num = 12.27874;
Response.Write(Math.Round(num, 2));
you will get 12.28
// if you want 12.279 then
Math.Round(num, 3);
you will get 12.279