Skip to Content

Arithmetic Functions

Abs(x)

  • Description: Absolute value of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: numerical

Ceil(x)

  • Description: Nearest integer greater than or equal to x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Exp(x)

  • Description: Exponential of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Fact(n)

  • Description: Factorial of n.

  • Number of parameters: 1

  • Parameter type: integer >= 0

  • Result type: integer

Floor(x)

  • Description: Nearest integer less than or equal to x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Frac(x)

  • Description: Fractional part of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Integer(x)

  • Description: Integer corresponding to x. When x is positive, it’s Floor(x) and it’s Ceil(x) otherwise.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Ln(x)

  • Description: Natural logarithm of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Log(x)

  • Description: Common logarithm of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Log2(x)

  • Description: Binary (base 2) logarithm of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

Max(x1, x2)

  • Description: Maximum between x1 and x2.

  • Number of parameters: 2

  • Parameter type: numerical, numerical

  • Result type: numerical

Min(x1, x2)

  • Description: Minimum between x1 and x2.

  • Number of parameters: 2

  • Parameter type: numerical, numerical

  • Result type: numerical

Sqrt(x)

  • Description: Square root of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real