This dialog box enables you to determine a type or a pattern and a format for a number to be converted between the String values in a field on your page and data types of java.lang.Number in your Java code.
The Number Format dialog box displays when you drop a Number Converter on a component in one of your pages.
The dialog box has the following fields:
Type. If you select this radio button, you can set the number to a currency or percent type of number, or leave it as a general number. You can select either a Type or a Pattern for the number.
Integer Digits. The minimum and maximum number of digits allowed for the integer part of the number, which default to a minimum of 1 and a maximum of 40.
Fractional Digits. The minimum and maximum number of digits allowed for the fractional part of the number, if any. The defaults are a minimum of 0 and a maximum of 3.
Locale. A code that determines the locale conventions used to interpret the number, such as using a period to separate the integer and fractional parts of the number. Pick the locale from the drop down list. If you choose the blank value, the default locale is used.
Currency Code: The three-letter ISO 4217 standard code used for the currency, only available if the Type is currency. For a list of currency codes, see
Pattern. If selected, the user is required to enter values that use the specified pattern. Choose a pattern from the drop down list or enter one of your own. You can select either a Type or a Pattern for the number.
Integer Only. The number must be a whole number with no fractional digits. For example, in
the English locale with Integer Only selected, the string "1234." is parsed as the integer value 1234, and parsing stops at the "." character. The exact format accepted by the parse operation is dependent on the locale.
Example: Choose or enter an example of the number you want to convert, and you will see the kind of entry that the user can make in the Results field.
Results: A String representation of the number that the user can enter.