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

2.6 Formatting Class

The Currency Module makes it easy to output decimal numbers in a very wide variety of numeric formats. RWDecimalFormat provides a layered interface to the formatting facilities. This lets you format output quickly and easily without any loss in functionality.

For simple formats, all you have to do is supply a string that visually indicates how the number should look. For example, you can format the number -4.23 as "($4.23)" using the picture string (__$.__).

More complicated formats are handled by manipulating the parameters in a formatting object. You can set leading text, trailing text, digit group separators, currency symbols, plus and minus signs and many other parameters. You can even change the formatting at run time in response to, for example, input from a graphical user interface.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.