Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

4.2 Attaching a Currency to a Value

Class RWMoney<T> provides a mapping between an amount and a currency, by encapsulating a decimal value and referencing a currency. The C++ and Java versions of this class differ. In C++, the value is an arbitrary decimal type specified as a template parameter. In Java, the value is either a double or a BigDecimal.

The following examples creates some RWMoney objects:

In C++:

In Java:


Previous fileTop of DocumentContentsIndexNext file

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