This content describes Snap 11. For Snap 10, the equivalent page will be in Snap 10 help

Next Topic

Book Contents

Book Index

Numeric Operands

Numeric Operands are elements of Numeric Expressions acted upon by Numeric Operators. For example, in the expression:

Q1 * 1.076

* is the operator and both Q1 and 1.076 are operands.

The following table shows the permissible operands:

Table of numeric operands for use with numeric formulae

Operand

Description

Number

An integer or decimal constant number. For example:

6

123.45

0.78901

Variable Name

The name of an existing variable.
If the variable is Single Response then the value of the code will be used, if it is a Quantity then the quantity value (and not the code) will be used.
If the specified variable has values of Not Asked or No Reply then the value 0 (zero) will be used.

For Q1* 2:
if Q1 = 2, then Q1 * 2 = 4
if Q1 = NR, then Q1 * 2 = 0

If the variable is a Date, Time, Literal or Multiple Response, the result of any operation will be an Error value.

Numeric Function

The name of a numeric function followed by a variable name. Refer to the section below for descriptions of the available functions.

Weight Matrix

A variable name followed by a weight matrix name, for example, to use a weight matrix called BALANCE with a variable called Q17 specify:

BALANCE(Q17)

The variable referenced must be of Single Response. The result will be the value of the matrix element referenced by the code value of the variable.

You would use this when generating a derived variable from a weighted variable or using a weighted variable to change the base of an analysis.

See Also

Numeric Functions

Numeric Operators