public void PercentButton() { if (String.IsNullOrEmpty(Operator)) { decimal result = Convert.ToDecimal(FirstOperand.FullPart); result = (result == 0 ? (decimal)(1f / 100f) : (decimal)(result / 100)); FirstOperand.Equal(result); } else { decimal result = Convert.ToDecimal(SecondOperand.FullPart); result = (result == 0 ? (decimal)(1f / 100f) : (decimal)(result / 100)); SecondOperand.Equal(result); } NotifyOfPropertyChange(() => Result); }