Using number display formats
Applies to
Display formats
Description
A number display format can have up to four sections. Only
the first is required.
1 |
Positive-format;negative-format;zero-format;null-format |
The following table shows characters that have special meaning
in number display formats.
Character |
Meaning |
---|---|
# |
A number |
0 |
A required number; a number will display |
Dollar signs, percent signs, decimal points, parentheses,
and spaces display as entered in the mask.
These keywords tell PowerBuilder to determine an appropriate
format based on system settings:
-
[General]
-
[Currency]
Examples
The following table shows how the values 5, -5, and
.5 display when different format masks are applied.
Sample format |
5 |
-5 |
.5 |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|