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 SourcePro C++ API Reference Guide for more information about using class RWMoney.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.