numberformat (Domino DTD)

Represents the localization formats of numbers.

Containment Hierarchy

Contained by: <field>, <column>

Syntax

<!ELEMENT numberformat EMPTY>

Attributes

<!ATTLIST numberformat

digits

%string;

"varying"

format

(%numberformat.formats;)

#IMPLIED

punctuated

%boolean;

#IMPLIED

parens

%boolean;

#IMPLIED

percent

%boolean;

#IMPLIED

>

digits

Represents the number of decimal places (0 to 15) to display when displaying the number. If the value is "varying," indicates that the number of decimal places to display may change.

format

Displays numbers in the formats defined in the %numberformat.formats; entity.

punctuated

If true, displays large numbers with the thousands separator; for example, 1,000.

parens

If true, displays negative numbers enclosed in parentheses; for example, (5) instead of -5.

percent

If true, displays values as percentages; for example, displays .10 as 10%.

Defined entity for <numberformat> element

The %numberformat.formats; entity defines the choices for number formats.

Syntax:

<!ENTITY % numberformat.formats "general | fixed | scientific | currency">

currency

Displays values with a currency symbol and two digits after the decimal symbol; for example, $15.00.

fixed

Displays numbers with a fixed number of decimal places. For example, 6 displays as 6.00.

general

Displays numbers as they are entered; zeroes following the decimal point are suppressed. For example, 6.00 displays as 6.

scientific

Displays numbers using exponential notation; for example, 10,000 displays as 1.00E+04.

Example