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).
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access