<< Click to Display Table of Contents >> Navigation: Reference Manual > Questions > Integer question |
An integer question is one to which the answer is a whole number (does not contain a decimal point).
You will need to set the width to the number of characters necessary to hold the largest answer you expect. If negative values are allowed, you should include an extra location to hold the minus sign.
An integer answer may occupy a width of up to 15 digits (data locations).
It is also possible to set a range of valid answers and up to 3 further numbers which have special meanings, by using the "plus" boxes, for example 998 (Refused) and 999 (Don't know).
The answer value will be stored, right justified, in the data locations allocated.
The program will only allow valid answers to be entered for an integer question.
A data check report will error questions with a value out of range.
TIP: integer questions that are filtered past or have been skipped will be treated as "undefined" in arithmetic calculations.
TIP: the serial number can be referred to using the reserved name of $serial.
You can set "Move on when full" so that when all the digits allowed for in the data location width are set, data entry moves on to the next question. For example if you capture a date as three separate integer questions DD, MM, YY you can allow the data entry person to only enter the 6 digits without having to move on after each question.