Skip to Content

Transformation Functions

Clip(x, min, max)

  • Description: Clip x to the interval [min,max][\mathrm{min}, \mathrm{max}].

  • Number of parameters: 3

  • Parameter type: numerical, numerical, numerical

  • Result type: real

Round(x)

  • Description: Nearest integer less than or equal to x if the fractional part is less than 1/21/2, nearest integer greater than or equal to x otherwise.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: real

RoundTo(x, n)

  • Description: Round x to n digits after the decimal point (if n is negative) or before the decimal point (if n is positive). When n is equal to 0, this function is identical to Round(x).

  • Number of parameters: 2

  • Parameter type: numerical, integer

  • Result type: real

Sign(x)

  • Description: Returns −1-1, 00, or 11 depending on the sign of x.

  • Number of parameters: 1

  • Parameter type: numerical

  • Result type: integer