Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Registers Gateway

Number functions

  • Last UpdatedSep 29, 2026
  • 2 minute read

Function / Aliases

Return

Description

Example

BETWEEN / INRANGE

Boolean

True if integer is between two others (inclusive)

3.between(1,5) => true

DIV / DIVIDE

Number

Returns a division result. If both numbers are an integer, the result is an integer.

'10'.DIV(2) => 5

MOD / MODULUS

Int

Returns modulus

$[this.index].mod(2)
Returns 1 for odd rows and 0 for even rows.

ISINTEGER / ISNATURALNUMBER

Boolean

Returns true if the value is or looks like an integer

isInteger(5.6) => false

ISNUMBER / ISNUMERIC

Boolean

Returns true if the value is or looks like a number

isNumeric(5.6) => true

LESSTHAN / ISLESSTHAN

Boolean

True if a double is less than another double

5.lessThan(6) => true

GREATERTHAN / ISGREATERTHAN

Boolean

True if a double is greater than another double

5.greaterThan(6) => true

ADD / PLUS

Int

Adds two integers

5.add(6) => 11

SUBTRACT / MINUS

Int

Subtracts an integer from another integer

5.minus(6) => -1

MULTIPLY

Int

Multiplies two integers

5.multiply(6) => 30

ISODD

Boolean

Indicates if an integer is odd

5.isOdd => true

ISEVEN

Boolean

Indicates if an integer is even

5.isEven => true

ISDIVISIBLEBY / DIVISIBLEBY / ISMULTIPLEOF

Boolean

Indicates if an integer is divisible by another integer with 0 remainder

5.isDivisibleBy(3) => false

EXTRACTDIGITS

String

Extracts digits 0-9 from some text

'1ce upon 8 t1me'.extractDigits => 181

BYTESTOKB

Double

Converts a byte amount to KB

1024.bytesToKB => 1

BYTESTOMB

Double

Converts a byte amount to MB

1024.multiply(1024).bytesToMB => 1

BYTESTOGB

Double

Converts a byte amount to GB

1024.multiply(1024).multiply(1024).bytesToGB => 1

CEILING

Int

Returns the ceiling of a double (closest integer >= to that number)

Ceiling(5.6) => 6

FLOOR

Int

Returns the floor of a double (closest integer <= to that number)

Floor(5.6) => 5

ABS

Int

Returns the absolute value of an integer

Abs(-5) => 5

MAX

Int

Returns the maximum of two integers

Max(5,6) => 6
Max([1,2,3,5,6,5]) => 6

MIN

Int

Returns the minimum of two integers

Min(5,6) => 5
Min([1,2,3,5,6,5]) => 1

ROUND

Number

Rounds a number

round(5, 2) => 5

POWER

Number

Exponentiation

2.power(10) => 1024

LOG

Number

Logarithm

100.log(10) => 2

SQRT / SQUAREROOT

Number

Square root

9.sqrt => 3

COS / COSH

Number

Cosine / Hyperbolic cosine

cos(0) => 1

SIN / SINH

Number

Sine / Hyperbolic sine

sin(0) => 0

TAN / TANH

Number

Tangent / Hyperbolic tangent

tan(0) => 0

ACOS

Number

Inverse cosine

acos(0) => 1.5707963267948966

ASIN

Number

Inverse sine

asin(1) = > 15707963267948966

ATAN

Number

Inverse tangent

ATAN(1) = > 0.785398163397448

Related Links