Calculations
-
A
See moreCalculation-compatible operand used by theCalculateshortcut.Declaration
Swift
public enum CalculationOperand : Encodable -
Represents a value that can be used as a operand in a
See moreCalculation.Declaration
Swift
public protocol CalculationOperandConvertible
-
Makes a calculation that adds the left-hand and right-hand arguments.
Declaration
Swift
public func + (lhs: CalculationOperandConvertible, rhs: CalculationOperandConvertible) -> CalculationParameters
lhsAn addend.
rhsAn addend.
Return Value
An addition calculation.
-
Makes a calculation that subtracts the right-hand from the left-hand argument.
Declaration
Swift
public func - (lhs: CalculationOperandConvertible, rhs: CalculationOperandConvertible) -> CalculationParameters
lhsThe minuend.
rhsThe subtrahend.
Return Value
A subtraction calculation.
-
Makes a calculation the multiplies the left-hand and right-hand arguments.
Declaration
Swift
public func * (lhs: CalculationOperandConvertible, rhs: CalculationOperandConvertible) -> CalculationParameters
lhsA factor.
rhsA factor.
Return Value
A multiplication calculation.
-
Makes a calculation that divides the left-hand from the right-hand argument.
Declaration
Swift
public func / (lhs: CalculationOperandConvertible, rhs: CalculationOperandConvertible) -> CalculationParameters
lhsThe dividend.
rhsThe divisor.
Return Value
A division calculation.
View on GitHub
Calculations Reference