Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Numbers

&pagelevel(4)&pagelevel

Only integers are allowed in expressions.

Data type

Character set

Value range

<integer>

0 ... 9, +, -

-231 ≤ number ≤ +231-1

Numbers must not be enclosed in single quotes, since they would then be interpreted as strings.

Numbers can be linked together by means of arithmetic operators and relational operators.

Numbers can also be inserted in a new expression as the contents of a variable, as a result of a function call or as a result of an expression.

Example

Correct integer assignments:

/A = -12345
/B = 3456
/C = +1287

The variables A, B and C are initialized with the specified numeric values.

Incorrect integer assignments:

/D = +123.5
/E = '+1234'

When variable D is initialized, SDF-P reports a syntax error in the variable name (+123.5 is not interpreted as a value). Variable E is initialized with the string ’+1234’; as soon as this variable is inserted in an arithmetic operation, SDF-P reports an incorrect data type (providing E has the data type ANY or STRING; otherwise, an error occurs during assignment).