decimal b = 1.995555M; Math.Round(b, 2); //returns 2.00
float d = (float)99.3333; Console.WriteLine(d.ToString("0.##"));
Math.Round(99.3333, 2)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)