Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

9.3 Input Format Grammar

This section describes the grammar required by the RWDecimal<T> stream input and string construction routines. The grammar provides a flexible and well-defined format for describing input. For information about constructing a BigDecimalValue from a string, see the JDK documentation for class BigDecimal.

For most users, the input format can be described as a one that lets you write any number in the conventional manner. For this discussion, "the conventional manner" allows commas as digit group separators, and permits leading dollar signs. It also allows you to indicate a negative number by appending a leading minus sign or surrounding the number with a pair of parentheses.

9.3.1 Tokens

The grammar is described in terms of the following tokens, which are described using conventional regular expression notation:

9.3.2 Grammar

Any string that can be described using the following grammar is acceptable as input:


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.