The best XML Schema numeric data types Tutorial In 2024, In this tutorial you can learn Decimal data type,Integer data type,Numeric data types,For numeric data types defined (Restriction),
Decimal data type is used to specify a value.
Here is an example of a scheme in decimal declared.
Elements in the document should look like this:
Or like this:
Or like this:
Or like this:
Or like this:
Note: You may specify the maximum number of decimal digits is 18.
No integer data type is used to specify the value of the fractional component.
Here is an example of a scheme integer declaration.
Elements in the document should look like this:
Or like this:
Or like this:
Or like this:
Please note that all of the following data types are derived from the decimal data type (except for decimal itself)!
first name | Seconds |
---|---|
byte | There are eight positive and negative integers |
decimal | Decimal |
int | There are positive and negative 32-bit integer |
integer | Integer value |
long | There are positive and negative 64-bit integer |
negativeInteger | Containing only negative integer (/en, -2, -1.) |
nonNegativeInteger | Containing only non-negative integer (0, 1, 2, /en) |
nonPositiveInteger | Containing only non-positive integer (/en, -2, -1, 0) |
positiveInteger | Contains only positive integer (1, 2, /en) |
short | There are positive and negative 16-bit integer |
unsignedLong | Unsigned 64-bit integer |
unsignedInt | 32-bit unsigned integer |
unsignedShort | Unsigned 16-bit integer |
unsignedByte | 8-bit unsigned integer |
Can be used in conjunction with the numeric data type is defined: