Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Currency Module User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

2.2 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 the Currency Module Reference Guide for more information about using class RWMoney.



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.