Calculation
public enum Calculation
A calculable expression to be used in conjunction with the Calculate shorcut.
-
Adds the left operand to the right operand.
Declaration
Swift
case add(CalculationOperand, CalculationOperand) -
Subtracts the right operand from the left operand.
Declaration
Swift
case subtract(CalculationOperand, CalculationOperand) -
Multiplies the two operands.
Declaration
Swift
case multiply(CalculationOperand, CalculationOperand) -
Divides the left operand by the right operand.
Declaration
Swift
case divide(CalculationOperand, CalculationOperand) -
Runs a calculation based on the user’s input.
Declaration
Swift
case askEachTime(CalculationOperand, CalculationOperand?)
View on GitHub
Calculation Enumeration Reference