public void AddCommaIfNotExist() { if (!DisplayString.Contains(",")) { DisplayString = DisplayString + ","; } }
public void TrimZeroes() { if (DisplayString.Contains(",")) { while (DisplayString.EndsWith("0")) { DisplayString = DisplayString.Remove(DisplayString.Length - 1); } } if (DisplayString.EndsWith(",")) { DisplayString = DisplayString.Remove(DisplayString.Length - 1); } }