Specifies the type of numeric data.
DDI 3.2
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
DDI 2.5
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
Creative Commons Attribution-ShareAlike 3
http://creativecommons.org/licenses/by-sa/3.0/
http://i.creativecommons.org/l/by-sa/3.0/80x15.png
Copyright ©
DDI Alliance
http://www.ddialliance.org/
2014
NumericType
Numeric Type
1.0
urn:ddi-cv:NumericType
urn:ddi-cv:NumericType:1.0
http://www.ddialliance.org/Specification/DDI-CV/NumericType_1.0_Genericode1.0_DDI-CVProfile1.0.xml
http://www.ddialliance.org/Specification/DDI-CV/NumericType_1.0.html
http://www.ddialliance.org/Specification/DDI-CV/NumericType_1.0_InputSheet_Excel2003.xls
DDI Alliance
The Alliance for the Data Documentation Initiative
DDI
Code
Value of the Code
Term
Descriptive Term of the Code
Definition
Definition of the Code
CodeKey
The unique identification of each item in a code list.
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.