How does the Number Class compare with Rogue Waves Money.h++?
Rogue Wave used to sell a C++ class library called Money.h++ that also supported extended precision decimal arithmetic. According to Rogue Wave’s web site, the “.h++ product line entered into obsolescence effective May 1, 2001”. Because Base One’s Number Class uses standard C++ arithmetic syntax, it’s easy to migrate applications off of Money.h++. Both Money.h++ and the Base/1 Number Class have a number of features in common: • handling exact decimal numbers and fractions with much more precision than C++ • rigorous decimal rounding behavior • error handling features not covered by C++ • support of null values distinct from the number zero • integration with a database toolkit including versatile I/O formatting capabilities However, there are a number of significant differences between Rogue Wave’s Money.h++ and Base One’s Number Class, due to their entirely different internal representation of numbers. Rogue Wave’s approach provides separate fixed and floating decimal point classes in