abs
Parameters:
- number
Returns the absolute value of the number.
acos
Parameters:
- number
Returns the arccosine of the number, in radians.
acosh
Parameters:
- number
Returns the hyperbolic arccosine of the number, in radians.
asin
Parameters:
- number
Returns the arcsine of the number, in radians.
asinh
Parameters:
- number
Returns the hyperbolic arcsine of the number.
atan
Parameters:
- number
Returns the hyperbolic arctangent of the number.
atan2
Parameters:
- number1
- number2
Returns the arctangent of the quotient of its arguments.
atanh
Parameters:
- number
Returns the hyperbolic arctangent of the number.
cbrt
Parameters:
- number
Returns the cubic root of the number.
ceil
Parameters:
- number
Returns the number, rounded upwards to the nearest integer.
cos
Parameters:
- number
Returns the cosine of the number (number is in radians).
cosh
Parameters:
- number
Returns the hyperbolic cosine of the number.
exp
Parameters:
- number
Returns the value of E^number, where E is Euler's number.
floor
Parameters:
- number
Returns the number, rounded downwards to the nearest integer.
log
Parameters:
- number
Returns the natural logarithm (base E) of the number.
max
Parameters:
- numbers
Returns the number with the highest value.
min
Parameters:
- numbers
Returns the number with the lowest value.
pow
Parameters:
- number1
- number2
Returns the value of first parameter to the power of the second parameter.
random
Returns a floating-point, pseudo-random number in the range 0–1.
round
Parameters:
- number
Rounds the number, to the nearest integer.
sin
Parameters:
- number
Returns the sine of the number.
sinh
Parameters:
- number
Returns the hyperbolic sine of the number.
tan
Parameters:
- number
Returns the tangent of the number.
tanh
Parameters:
- number
Returns the hyperbolic tangent of the number.
sqrt
Parameters:
- number
Returns the square root of the number.
trunc
Parameters:
- number
Returns the integer part of the number.
square
Parameters:
- number
Returns square of the number.
radians
Parameters:
- number
- precision
Converts degrees to radians and rounds received result by default precision equals 2.
degrees
Parameters:
- number
- precision
Converts radians to degrees and rounds received result by default precision equals 2.
factorial
Parameters:
- number
Returns factorial of the number.
add
Parameters:
- number1
- number2
Adds two parameters.
subtract
Parameters:
- number1
- number2
Subtracts two parameters.
multiply
Parameters:
- number1
- number2
Multiplies two parametrs.
divide
Parameters:
- number1
- number2
Divides two parameters.
distance
Parameters:
- a
- b
Calculates the distance between points a and b in space.
modulo
Parameters:
- number1
- number2
Divides two parameters and returns the remainder.
increment
Parameters:
- number
Increments the number.
decrement
Parameters:
- number
Decrements the number.
int
Parameters:
- number
Parses the number to the integer.
float
Parameters:
- number
Parses the number to the float.
clamp
Parameters:
- number, min, max
Returns the highest possible value from range min to max of the number.
percentage
Parameters:
- number
Converts the number to percentage format.
fixed
Parameters:
- number
- digit
Formats the number using fixed-point notation. By default digit equals 0.
monetize
Parameters:
- number
- options
Formats the number to currency format options is an object that accepts the following parameters: - digits: Number of digits after comma. By default equals 2. - separator: Separator separating the decimal part. By default equals ','. - symbol: The symbol of currency. By default equals 'zł'. - ending: Boolean flag, that specifies position of currency symbol. By default set to true. - space: Boolean flag, that specifies if space should exist before currency symbol. By default set to true. - hyphen: The symbol between groups of integer part. By default set to empty space. - size: The number of integers, that should be grouped. By default set to 3.
cube
Parameters:
- number
Returns the third power of the number.
feet
Parameters:
- number
- precision
- decimal
Converts inches to feets. By default precision equals 2. When decimal flag is set to false, returns result with prim (′) symbol.
inches
Parameters:
- number
- precision
- decimal
Converts feets to inches. By default precision equals 2. When decimal flag is set to false, returns result with bis (″) symbol.
mean
Parameters:
- array
Computes the mean of the values in array.
kmeans
Parameters:
- k
- data
- maxIterations
Computes centroids of k clusters, which are the average values of those points.