by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

xsd:decimal — Decimal numbers

Synopsis

<xsd:simpleType name="decimal" id="decimal">
 <xsd:restriction base="xsd:anySimpleType">
 <xsd:whiteSpace value="collapse" fixed="true"/>
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:anySimpleType

Primary

xsd:decimal

Known subtypes

xsd:integer

Data parameters (facets)

enumeration, fractionDigits, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern, totalDigits.

Description

xsd:decimal is the datatype that represents the set of all decimal numbers with arbitrary lengths. Its lexical space allows any number of insignificant leading and trailing zeros (after the decimal point).

Restrictions

The decimal separator is always a point (.), and no separation at the thousand mark may be added. There is no support for scientific notation.

Example

Valid values include: 123.456, +1234.456, -1234.456, -.456, or -456.

The following values are invalid: 1 234.456 (spaces are forbidden), 1234.456E+2 (scientific notation—E+2—is forbidden), + 1234.456 (spaces are forbidden), or +1,234.456 (delimiters between thousands are forbidden).


This text is released under the Free Software Foundation GFDL.