What is the best way to format a decimal if I only want decimal displayed if it is not an integer.
Eg:
decimal amount = 1000M decimal vat = 12.50M
decimal one = 1000M; decimal two = 12.5M; Console.WriteLine(one.ToString("0.##")); Console.WriteLine(two.ToString("0.##"));