Function |
Description |
---|---|
Returns the magnitude of a real number, ignoring its positive or negative sign |
|
Returns least integer greater than or equal to argument |
|
Returns the division integer |
|
Returns the exponential, base e |
|
Returns greatest integer less than or equal to argument |
|
Returns the natural logarithm (base e) of a number |
|
Returns the logarithm of a number |
|
Returns the modulo of division |
|
Returns the value of a base expression taken to a specified power |
|
Returns a random number |
|
Returns the rounded argument to nearest integer |
|
Returns the sign of a given value |
|
Returns the square root of a given value |
Returns the magnitude of a real number, ignoring its positive or negative sign
number uAbs(value)
A number to calculate on
uAbs(1522) // returns 1522
uAbs('-123.45') // returns 123.45
uAbs('123ABC') // returns 0
Returns least integer greater than or equal to argument
number uCeil(value)
A number to calculate on
Rounding up numbers
uCeil(1523.1) // returns 1524
uCeil(1523.9) // returns 1524
Returns the division integer
number uDiv(value, divisor)
A number to calculate on
The divisor of the division.
uDiv(10, 3) // returns 3
Returns the exponential, base e
number uExp(value)
A number to calculate on
uExp(1) // returns "2.718281828459045"
Returns greatest integer less than or equal to argument
number uFloor(value)
A number to calculate on
uFloor(1523.1) // returns 1523
uFloor(1523.9) // returns 1523
Returns the natural logarithm (base e) of a number
number uLn(value)
A number to calculate on
uLn(2.718281828) // returns 0.999999
Returns the logarithm of a number
number uLog(value [, base])
A number to calculate on
The base for the logarithm. If omitted, a base of 10 will be used
uLog(100) // returns 2
uLog(16, 2) // returns 4
Returns the modulo of division
number uMod(value, divisor)
A number to calculate on
The divisor of the division
uMod(10, 3) // returns 1
Returns the value of a base expression taken to a specified power
number uPow(value, exponent)
A number to calculate on
A number to be used as exponent
uPow(10, 3) // returns 1000
Returns a random number
number uRandom()
Random numbers
uRandom() // returns a value like "0.696654639123727"
Returns the rounded argument to nearest integer
number uRound(value [, scale])
A number to calculate on
Number of digits
uRound(10.1) // returns "10"
uRound(10.49) // returns "10"
uRound(10.5) // returns "11"
uRound(10.9) // returns "11"
uRound(1.235, 2) // returns "1.24"
Returns the sign of a given value
number uSgn(value)
A number to calculate on
uSgn(-10.4) // returns -1
uSgn(0) // returns 0
uSgn(10.4) // returns 1
uSgn(null) // returns null
Returns the square root of a given value
number uSqrt(value)
A number to calculate on
uSqrt(25) // returns 5
uSqrt(0) // returns 0
uSqrt(null) // returns null