Name

xs:float

Facets

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

The xs:float type represents a single-precision 32-bit IEEE 754 floating-point number. In addition to the digits 0–9 (and only those digits, not other Unicode digits), a leading plus or minus sign, and a single decimal point, xs:double also accepts scientific notation and the values INF (infinity), -INF (negative infinity), and NaN (not a number). If scientific notation is used, the mantissa may be a decimal but the exponent must be an integer. No preceding plus sign may be used on the exponent, but a preceding minus sign is acceptable. An E or an e separates the mantissa and the exponent. Legal values include 3.14159265358, -2.32E90, 1.7E12, 1.7E-12, 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.