Description

A numeric question accepts integer or real numbers as answers.
Numeric questions allow configuring all of the common question properties, as well as several properties that are specific to this type:
Integer- if checked, requires the answer to be an integer value and does not permit entering any fractional values.Number of decimal places(available only ifintegeris not checked; optional) - limits the fractional part to be no more than the specified number of digits, for example2. The value may still be displayed with fewer decimals if the last digit(s) are zero.Non-negative- if checked, the negative values will not be allowed as answers to this question.Use 1000 separator- if checked, the answer will be formatted with a thousands separator in the integer part.Special values- optionally, special values may be specified for user’s convenience. They will be shown as categorical selections and can be entered by selecting them (eliminating the need for typing).

Examples
| Examples of allowed values | Setup | |
|---|---|---|
| 0; 1; 2 | Default settings. | |
| -1; 0; 1 | Un-select non-negative. | |
| 0.23; 97.8732 | Un-select integer. | |
| 0.23; 97.87; 100.12 | Un-select integer and specify 2 for number of decimal places. | |
| -0.38; 0; 0.9734 | Un-select non-negative and un-select integer. | |
| -0.38; 0; 0.97 | Un-select non-negative, un-select integer, and specify 2 for number of decimal places. | |
| 123,456,789; 987,654 | Select Use 1000 separator. |
Export
The answer given to a numeric question is exported in a numeric
variable. The name of this variable is the question’s variable name
defined in the Questionnaire Designer.
If fractional values are permitted, they are exported with a dot as a decimal
delimiter.
Be mindful of the missing values.
Please note:
All numeric answers are bound by the applicable minimum and maximum value limits. For example, a value
9,876,543,210cannot be entered as an answer to a numeric integer question.Fractional values have finite precision. One cannot enter values smaller than that precision. For example, a value
0.00000000000000000000000000000000000000000000000000000000125cannot be entered as an answer to a numeric question.Numeric answers do not store leading zeroes or trailing zeroes in the fractional parts. (For example, when
007is entered,7is saved; when3.1400is entered,3.14is saved).