Display formats
A number display format can have up to four sections. Only the first is required.
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 for every 0 in the mask |
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]
The following table shows how the values 5, -5, and .5 display when different format masks are applied.
Sample format |
5 |
-5 |
.5 |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|