Money.h++ 1.5 and higher contains decimal and error classes that use C++ templates. RWDecimal<T> and RWFixedDecimal<T> replace the pre-version 1.5 decimals classes RWDecimalXX and RWFixedDecimalXX, while RW(Fixed)DecimalInexactErr<T> and RW(Fixed)DecimalOverflowErr<T> replace pre-version 1.5 error classes RW(Fixed)DecimalXXInexactErr and RW(Fixed)DecimalXXOverflowErr. In the templatized classes, the template parameter T is the mantissa type.
Table 20 lists the old decimal classes and their header files. Typedefs are provided in the indicated header files for backward compatibility to the pre-version 1.5 classes, and the public interface for the classes has not changed. In addition, the algorithms for performing arithmetic operations with the decimal classes haven't changed. Although there are some changes in the error-checking done when performing arithmetic operations, the only effect of these changes is to make error checking more correct and complete. There are no public changes to the RWDecimalPortable and RWDecimalFormat classes.
Old Money.h++ Class | Description | Header File |
RWDecimal52 |
52 bit (15 digit) decimal fractions |
rw/dec52.h |
RWFixedDecimal52 |
Fixed point 52 bit (15 digit) decimal fractions |
rw/fixdec52.h |
RWDecimal64 |
64 bit (18 digit) decimal fractions |
rw/dec64.h |
RWFixedDecimal64 |
Fixed point 64 bit (18 digit) decimal fractions |
rw/fixdec64.h |
RWDecimal96 |
96 bit (27 digit) decimal fractions |
rw/dec96.h |
RWFixedDecimal96 |
Fixed point 96 bit (27 digit) decimal fractions |
rw/fixdec96.h |
©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.