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

A.1 Decimal Classes in the Currency Module

The functionality of Money.h++ is now incorporated in the Currency Module of the Rogue Wave® product SourcePro® Analysis. The Currency Module, like all versions of Money.h++ 1.5 and higher, contains decimal and error classes that use 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 10 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.

Table 10: Decimal classes provided for backward compatibility 

Old Currency Module 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



Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.