I want to round up double value in two decimal places in c# how can i do that?
double inputValue = 48.485;
after round up
i
Another easy way is to use ToString with a parameter. Example:
float d = 54.9700F; string s = d.ToString("N2"); Console.WriteLine(s);
Result:
54.97