Specifies the type of numeric data.
Value of the Code | Descriptive Term of the Code | Definition of the Code |
---|---|---|
Integer | Integer | Whole numbers, the infinite set of integers, no minimum or maximum value. An integer datatype corresponding to the W3C XML Schema's xs:integer datatype. |
Int | Int | Whole numbers in the range -2147483648 .. 2147483647. An integer datatype corresponding to the W3C XML Schema's xs:int datatype. |
Long | Long | Whole numbers in the range -9223372036854775808 .. 9223372036854775807. A numeric datatype corresponding to the W3C XML Schema's xs:long datatype. |
Short | Short | Whole numbers in the range -32768 .. 32767. A numeric datatype corresponding to the W3C XML Schema's xs:short datatype. |
Decimal | Decimal | A subset of real numbers, which can be represented by a finite-length sequence of decimal digits (0-9) separated by a period as a decimal indicator. An optional leading sign is allowed. If the sign is omitted, "+" is assumed. Leading and trailing zeroes are optional. If the fractional part is zero, the period and following zero(es) can be omitted. For example: -1.23, 12678967.543233, +100000.00, 210. A numeric datatype corresponding to the W3C XML Schema's xs:decimal datatype. |
Float | Float | Single-precision 32-bit floating point type: The basic value space of float consists of the values m � 2 to the power of e, where m is an integer whose absolute value is less than 2 to the power of 24, and e is an integer between -149 and 104, inclusive. In addition, it also contains the following three special values: positive and negative infinity and not-a-number (NaN). The special values positive and negative infinity and not-a-number have lexical representations INF, -INF and NaN, respectively. Lexical representations for zero may take a positive or negative sign. For example, -1E4, 1267.43233E12, 12.78e-2, 12 , -0, 0 and INF are all legal literals for float. A numeric datatype corresponding to the W3C XML Schema's xs:float datatype. |
Double | Double | Double-precision 64-bit floating point type. The basic value space of double consists of the values m � 2 to the power of e, where m is an integer whose absolute value is less than 2 to the power of 53, and e is an integer between -1075 and 970, inclusive. In addition to the basic value space described above, the value space of double also contains the following three special values: positive and negative infinity and not-a-number (NaN). The special values positive and negative infinity and not-a-number have lexical representations INF, -INF and NaN, respectively. Lexical representations for zero may take a positive or negative sign. For example, -1E4, 1267.43233E12, 12.78e-2, 12 , -0, 0 and INF are all legal literals for double. A numeric datatype corresponding to the W3C XML Schema's xs:double datatype. |
Count | Count | Ordinal number of objects in a finite set, discrete. A simple incrementing Integer type. When using in DDI-L, the "isSequence" facet must be set to true, and the "interval" facet must be set to "1". |
Incremental | Incremental | A value that increases continuously and infinitely by a given amount. Use of this term in DDI-L indicates that the value increases by the amount provided in the "interval" facet; the "isSequence" facet will be set to "true". |
Other | Other | Use if the numeric type is known, but not found in the list. |
Type of numeric data, i.e., integer, decimal, float, etc. Supports the use of an external controlled vocabulary. The use of a controlled vocabulary is strongly recommended.
Module Name | Element Name |
---|---|
reusable | NumericTypeCode |
For the category attribute, a value from a controlled vocabulary may be provided if the "other" value is chosen. In this case, the term from the controlled vocabulary should be placed in the "othercategory" attribute, and the controlledVocabUsed element (in the Document Description section) should also be filled in.
Element Number in DDI 2.1 | Element/Attribute Name |
---|---|
4.3.23 | varFormat@category |
Copyright © DDI Alliance 2014.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.
Page generated by gc_ddi-cv2html.xslt.