Namespace: Math

Math

Source:

Methods

(static) rand(from, to) → {Number}

Returns a random number within the limit (inclusive).
Parameters:
Name Type Description
from Number
to Number
Source:
Returns:
Type
Number

(static) sign(number) → {Number}

Parameters:
Name Type Description
number Number
Source:
Returns:
(-1 | 0 | 1)
Type
Number

(static) trunc(number) → {Number}

Returns the integer part of the given number.
Parameters:
Name Type Description
number Number
Source:
Returns:
Type
Number