Integer expressions

Integer expression is a particular case of a numeric expression that returns a whole number.

Literal integer

a base-10 representation of an whole number

Function

a function which returns exactly one value

Named value

one of these values:

  • a variable of the INTEGER or compatible data type
  • the constant TRUE, FALSE, or (in some contexts) NULL
  • a simple member of a record or an simple element of an array

Boolean expression

an expression which returns either TRUE or FALSE

Any function calls or named values must return INTEGER values.

Values of the DATE data type can be used in integer expressions only when they define the difference between two DATE values (because this difference is returned in the integer format). This difference can be converted to the INTERVAL data type use UNITS operator.

Integer expressions can be used as operands within any other 4gl expression.

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.