Is there a display formatter that will output decimals as these string representations in c# without doing any rounding?
// decimal -> string 20 -> 20
decimal val = 0.000000000100m; string result = val == 0 ? "0" : val.ToString().TrimEnd('0').TrimEnd('.');