Name
xsd:int — 32-bit signed integers
Synopsis
<xsd:simpleType name="int” id="int"> <xsd:restriction base="xsd:long"> <xsd:minInclusive value="-2147483648"/> <xsd:maxInclusive value="2147483647"/> </xsd:restriction> </xsd:simpleType>
Derived from
xsd:long
Primary
xsd:decimal
Known subtypes
xsd:short
Data parameters (facets)
enumeration, fractionDigits,
maxExclusive, maxInclusive,
minExclusive, minInclusive,
pattern, totalDigits
Description
The value space of xsd:int is the set of common
single-size integers (32 bits), the integers between -2147483648 and
2147483647. Its lexical space allows any number of insignificant
leading zeros.
Restrictions
The decimal point (even when followed only by insignificant zeros) is forbidden.
-0 and +0 are considered equal, which is different from the behavior
of xsd:float and xsd:double.
Example
Valid values include -2147483648,
0, -0000000000000000000005, or
2147483647.
Invalid values include -2147483649 and
1..
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