Skip to main content
A newer version of this page is available. .

Calculator Class

Represents a calculator.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v18.2.dll

Declaration

public class Calculator :
    Control,
    ICalculatorViewOwner

Remarks

The Calculator is shown in the image below:

Calculator_DigitalDisplay

Its features include:

  • Basic Math Functions (add, subtract, multiply, etc.)
  • Memory Operations - store, recall, add (M+) and subtract (M-). The value stored in the calculator’s memory is returned by the Calculator.Memory property.
  • Calculation History - the calculation history is stored by the Calculator.History property.
  • Keyboard Support
  • Configurable Precision - use the Calculator.Precision property to specify the maximum number of digits displayed to the right of the decimal point.
  • Optional Digital Display - use the Calculator.IsDigitalDisplay property to specify whether the calculator has the digital or text display.
  • Customizable Error Text - handle the Calculator.CustomErrorText event to provide a custom error description.
  • Localizable UI
See Also