StandardCalculator - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: CalculatorClassLibrary
Extends: Calculator
Implements: IStandardCalculator

Description: Standard calculator type.

Constructors Usage
StandardCalculator(IInputBuffer, IOperatorLookup, IUnitConverter, IOperatorConverter, IExpressionBuilder, IExpressionParser, IEvaluate, IMemoryStorage) Initializes an instance of StandardCalculator class with injected services
Properties Usage
Expression<string> get current expression held in calculator
Input<string> (Inherited) get data held in calculator input buffer
LastResult<decimal> get most recent calculation result
MemoryValues<decimal[]> get a copy of all stored memory values
Methods Usage
Add(decimal) (Inherited) add input to calculator input buffer
Add(string) (Inherited) add input to calculator input buffer
Clear() (Inherited) clear all input and expressions in calculator
ClearInput() clear the content of calculator input buffer
Evaluate() evaluate current expressions/input stored in calculator
IsSpecialKey(string) check if specified input key is a special key
MemoryClear() clear all values in memory
MemoryMinus(int, decimal) subtract arbitrary value from memory value at specified index
MemoryPlus(int, decimal) add arbitrary value to memory value at specified index
MemoryRecall() overwrite input buffer content to most recent memory value
MemoryRemove(int) remove value in memory at specified index
MemoryRetrieve(int) retrieve value in memory at specified index
MemoryStore(decimal) store value in memory
Undo() (Inherited) revoke the most recent modification to calculator input buffer
⚠️ **GitHub.com Fallback** ⚠️