Functions
The following functions are available globally.
-
Adds two
MultiCurrencyAmountRepresentables into a MultiCurrencyAmountIf the MultiCurrencyAmount of both MultiCurrencyAmountRepresentable contain an
Amountin the sameCommoditythe higher number of decimalDigits will be used to ensure the tolerance is correct, except one is 0 than 0 is used as it is more preciseDeclaration
Swift
public func + (left: MultiCurrencyAmountRepresentable, right: MultiCurrencyAmountRepresentable) -> MultiCurrencyAmountParameters
leftfirst MultiCurrencyAmountRepresentable, the multiAccountAmount will be added
rightsecond MultiCurrencyAmountRepresentable, the multiAccountAmount will be added
Return Value
MultiCurrencyAmount which includes both amounts
-
Adds the
MultiCurrencyAmountof aMultiCurrencyAmountRepresentableto aMultiCurrencyAmountDeclaration
Swift
public func += (left: inout MultiCurrencyAmount, right: MultiCurrencyAmountRepresentable)Parameters
leftfirst MultiCurrencyAmount which at the same time will store the result
rightMultiCurrencyAmountRepresentable of which the multiAccountAmount will be added
View on GitHub
Install in Dash
Functions Reference