Table of Contents
Chapter 1: Introduction
1.1 Welcome
1.2 Software Requirements
1.3 Documentation
1.3.1 Assumptions
1.3.2 Conventions
1.3.3 Location of Online Documentation
1.3.4 Organization of this Manual
1.4 Rogue Wave Professional Training
1.5 Technical Support
1.5.1 Before Contacting Technical Support
1.5.2 How to Contact Technical Support
Chapter 2: Product Overview
2.1 Currency Classes
2.2 Money Class
2.3 Money Calculator Class
2.4 Conversion Classes
2.5 Decimal Classes
2.6 Formatting Class
2.7 Strings in Money.h++
2.8 Persistence
2.9 C++ Classes in Money.h++
2.10 Java Classes in Money.h++
2.11 Money.h++ Examples
2.11.1 Running the Examples in Java
2.11.2 Building and Running the C++ Examples
Chapter 3: Using the Currency Classes
3.1 Introduction
3.2 Currency Information Classes
3.3 Collections of Currencies
3.3.1 Available Currencies
3.3.2 Initializing a Currency Book
3.3.3 Adding, Deleting, and Searching for Currencies
Chapter 4: Money and Calculations
4.1 Introduction
4.2 Attaching a Currency to a Value
4.3 Same-Currency Calculations
4.4 Mixed-Currency Calculations
4.4.1 Setting the Conversion Policy
4.4.2 Setting the Accuracy and Rounding Method
4.5 Supported Money Decimal Types
Chapter 5: Currency Conversions
5.1 Introduction
5.2 Exchange Rates and Exchange Rate Tables
5.3 Currency Exchange Classes
5.4 Currency Exchange Groups
5.5 Currency Exchange Factory
5.6 Performing Currency Exchanges in C++
5.7 Performing Currency Exchanges in Java
5.8 Creating Custom Exchange Objects and Groups
5.8.1 Class USDollarBaseExchange
5.8.2 Class USDollarBaseGroup
5.8.3 Using the Custom Classes
5.9 C++ Exchange Class Hierarchies
5.10 Java Exchange Class Hierarchies
Chapter 6: Decimal Classes
6.1 Overview
6.2 How Decimal Values Are Represented
6.3 Precision
6.3.1 Class RWMultiPrecisionInt<n>
6.3.2 RWMP1Int, RWMP2Int and RWMP3Int Integer Types
6.3.3 32-bit long versus 64-bit long Types
6.3.4 Fixed and Floating Decimal Classes
6.4 Decimal Arithmetic
6.5 Special Values
6.6 Rounding
6.7 Conversions
6.7.1 Conversion from Integers and Strings
6.7.2 Conversion from Built-In Floating Point
6.7.3 Conversion to Built-In Types
Chapter 7: Formatting for Output
7.1 Overview
7.2 Formatting Numbers in C++
7.2.1 Using Pictures
7.2.2 Advanced Pictures
7.2.3 Code Positions in Pictures
7.2.4 Embedding Pictures in Sentences
7.3 Formatting Numbers in Java
7.4 Formatter Objects
Chapter 8: Errors and Error-Handling
8.1 Overview
8.2 Overflow Conditions
8.3 Inexact Conditions
8.4 Error-Handling
8.4.1 Installing an Inexact Error Handler
8.4.2 Installing an Overflow Error Handler
8.4.3 Changing the Default Error Handler in Java
8.5 Error Objects
8.6 Exceptions in Java
Chapter 9: Technical Notes
9.1 Localization
9.2 Base 2 Representation of Decimal Fractions
9.3 Input Format Grammar
9.3.1 Tokens
9.3.2 Grammar
9.4 Multithread Safety
Appendix A: Version History
A.1 Decimal Classes in Money 1.5 and Higher
A.2 Multiple Precision Integer Classes
Appendix B: Currency Book Initialization File
Topic Index
©Copyright 1999, Rogue Wave Software, Inc.
Contact
Rogue Wave about documentation or support issues.