Interface
zope.i18n.interfaces.INumberFormat

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 interfaces

Attributes/Fields

* = required

Methods

Adapters

Adapters for objects providing this interface:

Specific Adapters

There are no specific adapters registered for this interface.

Extended Adapters

There are no extended adapters registered for this interface.

Generic Adapters

Views

Browser

Specific views

There are no views available.

Extended views

Generic views

XML-RPC

HTTP

FTP

Other

Other Information

Classes

A list of classes that implement this interface. This might duplicate the entries in Utilities.