Class
zope.i18n.format.NumberFormat

Specific number formatting interface. Here are the formatting rules (I modified the rules from ICU a bit, since I think they did not agree well with the real world XML formatting strings):

posNegPattern := ({subpattern};{subpattern} | {subpattern}) subpattern := {padding}{prefix}{padding}{integer}{fraction} {exponential}{padding}{suffix}{padding} prefix := ''..'�' - specialCharacters * suffix := ''..'�' - specialCharacters * integer := {digitField}0 fraction := {decimalPoint}{digitField} exponential := E integer digitField := ( {digitField} {groupingSeparator} | {digitField} '0' | 0 | {optionalDigitField} ) optionalDigitField := ( {digitField} {groupingSeparator} | {digitField} '#' | # ) groupingSeparator := , decimalPoint := . padding := * ''..'�'

Possible pattern symbols:

  1. A digit. Always show this digit even if the value is zero. # A digit, suppressed if zero . Placeholder for decimal separator , Placeholder for grouping separator E Separates mantissa and exponent for exponential formats ; Separates formats (that is, a positive number format verses a negative number format) - Default negative prefix. Note that the locale's minus sign character is used. + If this symbol is specified the locale's plus sign character is used. % Multiply by 100, as percentage ? Multiply by 1000, as per mille ¤ This is the currency sign. it will be replaced by a currency symbol. If it is present in a pattern, the monetary decimal separator is used instead of the decimal separator. ¤¤ This is the international currency sign. It will be replaced by an international currency symbol. If it is present in a pattern, the monetary decimal separator is used instead of the decimal separator. X Any other characters can be used in the prefix or suffix ' Used to quote special characters in a prefix or suffix

Base classes

Implemented Interfaces

Attributes/Properties

Methods

Known Subclasses

There are no known subclasses.