Name

xs:decimal

Facets

xs:enumeration, xs:fractionDigits, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:totalDigits, xs:whiteSpace

The xs:decimal type represents a base-10 number, including any number of fractional digits to the right of the decimal point. Values may include the digits 0–9 (and only those digits, not other Unicode digits), a leading plus or minus sign, and a single decimal point. xs:decimal does not support scientific notation or values representing infinity. (For those purposes you should use xs:double or xs:float.) Acceptable values include −20, +25.1, 0.2, 3.1415926535897932384626433832795, 0, −0, −0., and +.0.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.