Format decimal to two places or a whole number June 15, 2023 by Tarik decimal num = 10.11M; Console.WriteLine( num.ToString( "0.##" ) );