Money and Calculations
Introduction
Money objects attach a currency mnemonic to an amount by encapsulating a decimal value and referencing a currency. The Currency Module provides money objects through the class RWMoney.
The money object classes provide ways to perform arithmetic operations among money operands of the same currency. However, you can’t use the money classes to perform arithmetic operations with operands whose currencies may differ. To provide this functionality, the Currency Module provides a money calculator class in the RWMoneyCalculator<T>. Mixed-Currency Calculations describes how to use this class.