zeroFormat

The zeroFormat property specifies how zero values are displayed in numeric fields but not in fields of type MONEY. This property is affected by the numeric separator, currency, and fillCharacter properties. The values of zeroFormat are as follows:
Yes
A zero value is displayed as the number zero, which can be expressed with decimal points (0.00 is an example, if the item is defined with two decimal places) and with currency symbols and character separators ($000,000.00 is an example, depending on the values of the currency and numericSeparator properties). The following rules apply when the value of the property zeroFormat is yes:
  • If the fill character (the value of the fillCharacter property) is 0, the data is formatted with the character 0
  • If the fill character is a null, the data is left-justified
  • If the fill character is a blank, the data is right-justified
  • If the fill character is an asterisk (*), asterisks are used as the left-side fillers instead of blanks
No
A zero value is displayed as a series of the fill character.

Related reference
Java runtime properties (details)
Primitive field-level properties
set
currencySymbol
Date, time, and timestamp format specifiers

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.