Math and numeric functions

This page is generated automatically from the interpreter function registry and grouped by practical use.

Page map

Math and numeric functions 36

MATH.ABS

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ABS(value)

Absolute numeric value.

Minimal example

value = MATH.ABS(value)

MATH.ACOS

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ACOS(value)

Inverse cosine, returning radians.

Minimal example

value = MATH.ACOS(value)

MATH.ACOSH

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ACOSH(value)

Inverse hyperbolic cosine.

Minimal example

value = MATH.ACOSH(value)

MATH.ASIN

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ASIN(value)

Inverse sine, returning radians.

Minimal example

value = MATH.ASIN(value)

MATH.ASINH

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ASINH(value)

Inverse hyperbolic sine.

Minimal example

value = MATH.ASINH(value)

MATH.ATAN

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ATAN(value)

Inverse tangent, returning radians.

Minimal example

value = MATH.ATAN(value)

MATH.ATAN2

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ATAN2(y,x)

Two-argument inverse tangent, returning radians.

Minimal example

value = MATH.ATAN2(y,x)

MATH.ATANH

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ATANH(value)

Inverse hyperbolic tangent.

Minimal example

value = MATH.ATANH(value)

MATH.CBRT

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.CBRT(value)

Cube root.

Minimal example

value = MATH.CBRT(value)

MATH.CEIL

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.CEIL(value)

Rounds toward positive infinity.

Minimal example

value = MATH.CEIL(value)

MATH.COS

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.COS(value)

Cosine of the angle in radians.

Minimal example

value = MATH.COS(value)

MATH.COSH

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.COSH(value)

Hyperbolic cosine.

Minimal example

value = MATH.COSH(value)

MATH.DOUBLE

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.DOUBLE(value)

Converts the value to double.

Minimal example

value = MATH.DOUBLE(value)

MATH.EXP

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.EXP(value)

Natural exponential e^x.

Minimal example

value = MATH.EXP(value)

MATH.EXP2

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.EXP2(value)

Base-2 exponential 2^x.

Minimal example

value = MATH.EXP2(value)

MATH.EXPM1

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.EXPM1(value)

Computes e^x - 1 with improved small-value accuracy.

Minimal example

value = MATH.EXPM1(value)

MATH.FLOOR

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.FLOOR(value)

Rounds toward negative infinity.

Minimal example

value = MATH.FLOOR(value)

MATH.FMOD

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.FMOD(a,b)

Floating-point remainder with truncation-based quotient.

Minimal example

value = MATH.FMOD(a,b)

MATH.HYPOT

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.HYPOT(a,b)

Euclidean norm sqrt(a*a + b*b).

Minimal example

value = MATH.HYPOT(a,b)

MATH.INT

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.INT(value)

Converts the value to a truncated integer.

Minimal example

value = MATH.INT(value)

MATH.LOG

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.LOG(value)

Natural logarithm.

Minimal example

value = MATH.LOG(value)

MATH.LOG10

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.LOG10(value)

Base-10 logarithm.

Minimal example

value = MATH.LOG10(value)

MATH.LOG1P

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.LOG1P(value)

Computes log(1+x) with improved small-value accuracy.

Minimal example

value = MATH.LOG1P(value)

MATH.LOG2

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.LOG2(value)

Base-2 logarithm.

Minimal example

value = MATH.LOG2(value)

MATH.MAX

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.MAX(a,b)

Returns the larger of two numeric values.

Minimal example

value = MATH.MAX(a,b)

MATH.MIN

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.MIN(a,b)

Returns the smaller of two numeric values.

Minimal example

value = MATH.MIN(a,b)

MATH.POW

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.POW(base,exponent)

Raises a base to an exponent.

Minimal example

value = MATH.POW(base,exponent)

MATH.REMAINDER

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.REMAINDER(a,b)

IEEE-style floating-point remainder.

Minimal example

value = MATH.REMAINDER(a,b)

MATH.ROUND

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.ROUND(value)

Rounds to the nearest integer, half away from zero.

Minimal example

value = MATH.ROUND(value)

MATH.SIN

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.SIN(value)

Sine of the angle in radians.

Minimal example

value = MATH.SIN(value)

MATH.SINH

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.SINH(value)

Hyperbolic sine.

Minimal example

value = MATH.SINH(value)

MATH.SQRT

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.SQRT(value)

Square root.

Minimal example

value = MATH.SQRT(value)

MATH.TAN

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.TAN(value)

Tangent of the angle in radians.

Minimal example

value = MATH.TAN(value)

MATH.TANH

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.TANH(value)

Hyperbolic tangent.

Minimal example

value = MATH.TANH(value)

MATH.TRUNC

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.TRUNC(value)

Truncates the fractional part.

Minimal example

value = MATH.TRUNC(value)

MATH.TYPE

FUNCTIONMATHBATCH-FRIENDLY
Kind: Function   Category: Math and numeric functions   Namespace: MATH

MATH.TYPE(value)

Returns NUMBER, BOOL, STRING, IMAGE, STACK, ARRAY or NULL.

Minimal example

value = MATH.TYPE(value)

Time functions 2

TIME.ELAPSED_MS

FUNCTIONTIMEBATCH-FRIENDLY
Kind: Function   Category: Time functions   Namespace: TIME

TIME.ELAPSED_MS(name)

Returns monotonic milliseconds elapsed since TIMER_RESET was called for the named timer.

Minimal example

value = TIME.ELAPSED_MS(name)

TIME.TICK_MS

FUNCTIONTIMEBATCH-FRIENDLY
Kind: Function   Category: Time functions   Namespace: TIME

TIME.TICK_MS()

Returns monotonic milliseconds elapsed since the current script runtime started or was cleared.

Minimal example

value = TIME.TICK_MS()