Functions
The following functions are available globally.
-
Adds two
MultiCurrencyAmountRepresentable
s into a MultiCurrencyAmountIf the MultiCurrencyAmount of both MultiCurrencyAmountRepresentable contain an
Amount
in the sameCommodity
the 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) -> MultiCurrencyAmount
Parameters
left
first MultiCurrencyAmountRepresentable, the multiAccountAmount will be added
right
second MultiCurrencyAmountRepresentable, the multiAccountAmount will be added
Return Value
MultiCurrencyAmount which includes both amounts
-
Adds the
MultiCurrencyAmount
of aMultiCurrencyAmountRepresentable
to aMultiCurrencyAmount
Declaration
Swift
public func += (left: inout MultiCurrencyAmount, right: MultiCurrencyAmountRepresentable)
Parameters
left
first MultiCurrencyAmount which at the same time will store the result
right
MultiCurrencyAmountRepresentable of which the multiAccountAmount will be added