Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed the incorrect Round version per SWAT-2695

In this Page

...

Description

Returns the largest integer less than or equal to a number "x".

This is similar to the JavaScript Math.floor().

Syntax


Code Block
Math.floor(number)


Example

Expression: Math.floor(3342.3)

Result: 3342

round

Description

Returns the clo.

This is similar to the JavaScript Math.max().

Syntax
Code Block
Math.round(value1)
Example

Expression: Math.max(10,12,30)

Result: 30


max

Description

Returns the largest number in a series of supplied numbers.

This is similar to the JavaScript Math.max().

Syntax


Code Block
Math.max(value1, value2, ...)


Example

Expression: Math.max(10,12,30)

Result: 30

...

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


Code Block
Math.random()


Example

Expression: Math.random()

Result: 0.29628396818343006

randomUUID

DescriptionGenerates a random UUID string.
Syntax


Code Block
Math.randomUUID()


Example

Expression: Math.randomUUID()

Result: 2c28e2c0-9767-11e4-9a0d-c3f2b01def6d

round

Description

Returns the number of the value rounded off to the nearest integer.

This is similar to the JavaScript Math.round().

Syntax


Code Block
Math.round(value1)


Example

Expression: Math.round(3.14159265358979)

Result: 3

Expression: Math.round(3.64159265358979)

Result: 4

Expression: Math.round(-3.14159265358979)

Result: -3

...