This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help
Quantity variables are used when the possible replies to the question will be a number (consisting of digits, with an optional plus/minus sign and/or a decimal point) e.g.
How much did you spend? ![]()

![]()
.![]()

They are used to capture numeric data without classification. All valid responses are stored in a single code. You can use auto-coding to break them into categories or create derived quantity variables to perform calculations on the results.

The fields for a Question Quantity Variable generally follow the same rules as described earlier in this section, with the exception of the following:
Length |
The number of characters (between 1 and 10) available to enter the response. The default value is set to 10. |
Decimal places |
A number between 1 and 7 specifying that the data will be stored to that number of decimal places, even though the valid value might specify a value with more digits after the decimal place. The default value is 0. |
Pattern |
Any valid pattern that is applied to the data when it is entered. |
Number of Codes |
Only one valid code, OK |
Label |
The label for valid codes is pre-set to Valid. You can change the text used for labels by selecting Tailor | Analysis to open the Analysis Tailoring dialog and changing the information on the Base/Labels tab. |
Valid values |
You can specify what data will be valid, for example, a range such as 5 to 15, a list of items or a combination of both, e.g.: 1 to 25.00. Any value outside this range will be excluded and will be treated as an error. |
|
See Also |