Not all supported methods may be in the Functions and Properties drop-down list. If not available, you may type it in.
abs
Not all supported methods may be in the Functions and Properties drop-down list. If not available, you may type it in.
abs
Description | Returns the absolute value of a number "x". This is similar to the JavaScript Math.abs(). |
---|---|
Syntax | Math.abs(number) |
Example | Expression: Result: 1 |
ceil
Description | Returns the smallest integer greater than or equal to a number "x". This is similar to the JavaScript Math.ceil(). |
---|---|
Syntax | Math.ceil(number) |
Example | Expression: Result: 3343 |
floor
Description | Returns the largest integer less than or equal to a number "x". This is similar to the JavaScript Math.floor(). |
---|---|
Syntax | Math.floor(number) |
Example | Expression: Math.floor(3342.3) Result: 3342 |
max
Description | Returns the largest number in a series of supplied numbers. This is similar to the JavaScript Math.max(). |
---|---|
Syntax | Math.max(value1, value2, ...) |
Example | Expression: Result: 30 |
min
Description | Returns the smallest number in a series of supplied numbers. This is similar to the JavaScript Math.min(). |
---|---|
Syntax | Math.min(value1, value2, ...) |
Example | Expression: Result: 10 |
pow
Description | Returns the base to the exponent power. This is similar to the JavaScript Math.pow(). |
---|---|
Syntax | Math.pow(base, exponent) |
Example | Expression: Math.pow(12,2) Result: 144 |
random
Description | Returns a floating-point, pseudo-random number from 0 (inclusive) up to but not including 1. This is similar to the JavaScript Math.random(). |
---|---|
Syntax | Math.random() |
Example | Expression: Result: 0.29628396818343006 |
randomUUID
Description | Generates a random UUID string. |
---|---|
Syntax | Math.randomUUID() |
Example | Expression: Result: 2c28e2c0-9767-11e4-9a0d-c3f2b01def6d |
sign
Description | Returns the sign of a number, indicating if it is a positive number, negative number, zero, or not a number. This is similar to the JavaScript Math.sign() except that negative and positive zero are treated as positive zero. |
---|---|
Syntax | Math.sign(number) |
Example | Expression: Result: NaN Expression: Result: -1 |
trunc
Description | Returns the integral number, removing any fractional digits. This is similar to the JavaScript Math.trunc(). |
---|---|
Syntax | Math.trunc(number) |
Example | Expression: Math.trunc(14.29) Result: 14 |
Properties
The following JavaScript constants are supported:
- Math.E Euler's Constant
- Math.LN2 Natural logarithm of 2
- Math.LN10 Natural logarithm of 10
- Math.LOG2E Base 2 logarithm of e
- Math.LOG10E Base 10 logarithm of e
- Math.PI the value of Pi (π)
- Math.SQRT1_2 Square root of 1/2
- Math.SQRT2 Square root of 2
ceil
Description | Returns the smallest integer greater than or equal to a number "x". This is similar to the JavaScript Math.ceil(). |
---|---|
Syntax | Math.ceil(number) |
Example | Expression: Result: 3343 |
floor
Description | Returns the largest integer less than or equal to a number "x". This is similar to the JavaScript Math.floor(). |
---|---|
Syntax | Math.floor(number) |
Example | Expression: Math.floor(3342.3) Result: 3342 |
max
Description | Returns the largest number in a series of supplied numbers. This is similar to the JavaScript Math.max(). |
---|---|
Syntax | Math.max(value1, value2, ...) |
Example | Expression: Result: 30 |
min
Description | Returns the smallest number in a series of supplied numbers. This is similar to the JavaScript Math.min(). |
---|---|
Syntax | Math.min(value1, value2, ...) |
Example | Expression: Result: 10 |
pow
Description | Returns the base to the exponent power. This is similar to the JavaScript Math.pow(). |
---|---|
Syntax | Math.pow(base, exponent) |
Example | Expression: Math.pow(12,2) Result: 144 |
random
Description | Returns a floating-point, pseudo-random number from 0 (inclusive) up to but not including 1. This is similar to the JavaScript Math.random(). |
---|---|
Syntax | Math.random() |
Example | Expression: Result: 0.29628396818343006 |
randomUUID
Description | Generates a random UUID string. |
---|---|
Syntax | Math.randomUUID() |
Example | Expression: Result: 2c28e2c0-9767-11e4-9a0d-c3f2b01def6d |
sign
Description | Returns the sign of a number, indicating if it is a positive number, negative number, zero, or not a number. This is similar to the JavaScript Math.sign() except that negative and positive zero are treated as positive zero. |
---|---|
Syntax | Math.sign(number) |
Example | Expression: Result: NaN Expression: Result: -1 |
trunc
Description | Returns the integral number, removing any fractional digits. This is similar to the JavaScript Math.trunc(). |
---|---|
Syntax | Math.trunc(number) |
Example | Expression: Math.trunc(14.29) Result: 14 |
Properties
The following JavaScript constants are supported:
- Math.E Euler's Constant
- Math.LN2 Natural logarithm of 2
- Math.LN10 Natural logarithm of 10
- Math.LOG2E Base 2 logarithm of e
- Math.LOG10E Base 10 logarithm of e
- Math.PI the value of Pi (π)
- Math.SQRT1_2 Square root of 1/2
- Math.SQRT2 Square root of 2