Built-in functions

In mathematical expressions, you can use the functions available for any platform.

Function

Description

time()

Returns the time in milliseconds since the program started.

sin(angle)

The sine of the angle, where "angle" is the angle in degrees.

cos(angle)

The cosine of the angle, where "angle" is the angle in degrees.

ln(a)

The logarithm, where "a" is a number.

exp(a)

Exponent ("e" in the degree of argument "a").

asin(a)

Arcsine, where "a" is a number.

acos(a)

Arccosine, where "a" is a number.

atan(a)

Arctangent, where "a" is a number.

atan2(a1, a2)

The arctangent of a1 / a2 with division check by 0.

sgn(a)

Sign. Returns 1 if the argument “a” is positive, -1 if it is negative, and 0 if the argument is zero.

sqrt(a)

The square root of the argument "a". If the argument is negative, the variable will be assigned the value “NaN” (Not A Number).

abs(a)

The absolute value of number "a".

ceil(a)

Rounds up the passed argument "a" to the nearest integer.

floor(a)

Rounds down the passed argument "a" to the nearest integer.

random(a)

A random number between 0 and the passed argument “a”.

Last updated