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

4.3 Same-Currency Calculations

RWMoney<T> provides global operators for performing same-currency arithmetic calculations. When objects created from these classes are used in arithmetic operations, all operands must be the same currency. If the currencies for operands in the same equation differ, the operator throws an exception.

Similarly, all assignments to money objects must have the same currency as the original object. If not, an exception is thrown.

Here is an example:



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.