ABS

Return the absolute value of a number, meaning its positive value

Usage

ABS(number)

Parameters

number

(Required) The number

Examples

Example With these variables Result

ABS(10)

(None)

10

ABS(-5)

(None)

5

ABS(number)

number is -14

14

Reminders

A text containing digits is not handled as a number. To have an actual number:

  • use the @NUMBER_QUESTION to set the variable
  • write a numeric value directly in the code without quotes, ex: age >= 18
  • use a function which converts to a number: NUMBER(text_containing_numbers)
  • use a function which returns a number: FIND("world", "hello everybody")