EVEN

Rounds the number (away from zero) to an even number

Usage

EVEN(number)

Parameters

number

(Required) The number to round

Examples

Example With these variables Result

EVEN(10)

(None)

10

EVEN(5)

(None)

6

EVEN(number)

number is 4.1

6

EVEN(number)

number is -2.1

-4

More information

If number is already even, 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