NumberFormat Class

The NumberFormat class is used to store Windows locale numeric information.

You cannot modify system-created instances of the NumberFormat class (that is, instances created and maintained by JADE to store locale information and user-defined formats) from your JADE code.

JADE automatically creates a transient instance of NumberFormat for each application that you can read by using app.currentLocaleInfo.numericInfo. This instance contains numeric information for the current locale.

When the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file is not defined or it is set to false, inconsistent results could be returned to the application server when running in JADE thin client mode and there are regional overrides, as all overrides on the application server are suppressed. Formatting of locale data is done on the application server, based on the locale of the corresponding presentation client.

For details about returning a string containing the receiver in the supplied number format, see the userNumberFormat method in the Integer, Real, or Decimal primitive type.

NumberFormat instances are also used to store user-defined numeric formats that can be passed to the various primitive type user format methods. You can maintain these formats only by using the appropriate Formats menu command, accessed from the Format Browser.

For details about the constants, properties, and method defined in the NumberFormat class, see "NumberFormat Class Constants", "NumberFormat Properties", and "NumberFormat Method", in the following subsections.

LocaleFormat

CurrencyFormat