YouTip LogoYouTip

Schema Dtypes Numeric

# XSD Numeric Data Types * * * * * * ## Decimal Data Type The decimal data type is used to specify a numeric value. Here is an example of declaring a decimal number in a scheme. The element in the document should look like this: 999.50 Or like this: +999.5450 Or like this: -999.5230 Or like this: 0 Or like this: 14 **Note:** The maximum number of digits you can specify for a decimal number is 18 digits. * * * ## Integer Data Type The integer data type is used to specify a number without a decimal component. Here is an example of declaring an integer in a scheme. The element in the document should look like this: 999 Or like this: +999 Or like this: -999 Or like this: 0 * * * ## Numeric Data Types Please note that all the following data types are derived from the decimal data type (except decimal itself)! | Name | Description | | --- | --- | | byte | An 8-bit integer with positive and negative values | | decimal | Decimal number | | int | A 32-bit integer with positive and negative values | | integer | Integer value | | long | A 64-bit integer with positive and negative values | | negativeInteger | An integer that contains only negative values (..., -2, -1.) | | nonNegativeInteger | An integer that contains only non-negative values (0, 1, 2, ...) | | nonPositiveInteger | An integer that contains only non-positive values (..., -2, -1, 0) | | positiveInteger | An integer that contains only positive values (1, 2, ...) | | short | A 16-bit integer with positive and negative values |
← Schema Dtypes MiscSchema Complex Subst β†’