int int( | any value); |
any value
;
This function converts between any data type and an integer value.
float float( | any value); |
any value
;This function converts between any data type and an floating point value.
float ceil( | x); |
float x
;Returns the ceiling of the x
as a float, the smallest integer values greater than or equal to
x.
float copysign( | x, | |
y); |
float x;float y
;Returns x with the sign of
y. copysign(2,-1)
returns -2.
float fabs( | x); |
float x
;Returns the absolute value of
x.
int factorial( | x); |
int x
;Returns x factorial. Fails if
x is not an integer or is negative.
float floor( | x); |
float x
;Returns the largest integer value less than or equal to
x.
float fmod( | x, | |
y); |
float x;float y
;Returns x modulus
y.
float frexp( | x); |
float x
;Returns x with the mantissa
and the exponent as separate components of a pair (m,e), such that
x=m*2e.
To use one or the other, you must refer to them as a subscript,
thus [0] for the mantissa and [1] as the exponent.
float fsum( | any value, | |
...); |
any value
;Returns the sum of all values in the list.
bool isinf( | x); |
float x
;Returns True if x is infinite,
False otherwise.
bool isnan( | x); |
float x
;Returns True if x is the IEEE
NAN value, False otherwise.
float ldexp( | x, | |
i); |
float x;int i;Returns x
*2^i.
float modf( | x); |
float x;Returns the fractional and integer parts of
x as a pair (f,i) such that
x=f+i. To use the individual
components, they must be accessed by subscript, thus [0] for the
fraction and [1] for the integer.
float trunc( | x); |
float x;Returns x
truncated.
float exp( | x); |
float x;Returns e
*x.
float log( | x, | |
base); |
float x;[floatbase];Returns the natural logarithm of
x if there is only one parameter.
Returns the logarithm of x given
base, calculated as
log(x)/log(base).
float log1p( | x); |
float x;Returns the natural logarithm of
1+x (base e).
float log10( | x); |
float x;Returns the base-10 logarithm of
x. Generally more accurate than
log(x,10).
float exp( | x, | |
y); |
float x
;float y;Returns
x^y.
float sqrt( | x); |
float x;Returns the square root of
x.