Currency Module User’s Guide : Chapter 2 Product Overview : Money Class
Money Class
Money objects are available through the class RWMoney in the Currency Module library. A money object attaches a currency mnemonic to an amount by encapsulating a decimal value and referencing a currency. The value is a decimal type specified as a template parameter.
RWMoney uses global operators for arithmetic operations between money objects of the same currency. If the currencies for two RWMoney operands in such a calculation are different, the operator throws an exception. To perform calculations with monies of different currencies, you must use class RWMoneyCalculator<T>. See Chapter 4, “Money and Calculations,” and RWMoney in the SourcePro C++ API Reference Guide for more information.