Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

4.1 Introduction

Money objects attach a currency mnemonic to an amount by encapsulating a decimal value and referencing a currency. Money.h++ provides money objects through C++ class RWMoney and Java class Money.

Both C++ and Java 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 with operands whose currencies may differ. To provide this functionality, Money.h++ provides a money calculator class. In C++ this class is RWMoneyCalculator; in Java it is MoneyCalculator. Section 4.4 describes how to use these classes.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.