INT

Rounds a number (toward negative infinity) to a whole number

Usage

INT(number)

Parameters

number

(Required) The number to round

Examples

Example With these variables Result

INT(10)

(None)

10

INT(11.1)

(None)

11

INT(age)

age is 21.4

21

INT(number)

number is -2.1

-3

More information

If number is already whole, then number is returned as is.

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")

See also