/// <summary> /// This method removes the last character from the ResultLabel /// </summary> private void RemoveLastCharacterFromResultLabel() { var lastChar = OutputString.Substring(OutputString.Length - 1); if (lastChar == ".") { DecimalExists = false; } OutputString = OutputString.Remove(OutputString.Length - 1); if (OutputString.Length == 0) { OutputString = "0"; } ResultLabel.Text = OutputString; }