Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

4.5 Supported Money Decimal Types

RWMoney<T> objects in Money.h++ can be types double, and RWDecimal<RWMPXInt> where X is 1, 2, or 3.

When you create a money object in Java, the value's type can be either BigDecimal or double. These types can be mixed in arithmetic operations, but, in such cases, Java will automatically convert any floating point value to a decimal value. For example:



Previous fileTop of DocumentContentsIndexNext file

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