exchange

infix fun Money.exchange(rate: Money): Money(source)

Converts a Money to another currency by the given exchange rate. Calculations using the resulting Money will be rounded with the strategy of the given rate object.

Receiver

Money

Return

The resulting Money.

Parameters

rate

The exchange rate.

Throws