Functions

All those functions exist for float and double types.

ceil(x: float) float

Returns the nearest integer not less than the given value.

copysign(x: float, y: float) float

Composes a floating point value with the magnitude of x and the sign of y.

fabs(x: float) float

Computes absolute value of a floating-point value.

floor(x: float) float

Returns the nearest integer not greater than the given value.

fmod(x: float, y: float) float

Computes the floating-point remainder of the division operation x/y.

isfinite(x: float) bool

Checks if the argument has finite value.

isinf(x: float) bool

Checks if the argument is infinite.

isnan(x: float) float

Checks if the argument is NaN.

ldexp(x: float, y: int) float

Multiplies a floating point value x by the number 2 raised to the y power.

remainder(x: float, y: float) float

Computes the IEEE remainder of the floating point division operation x/y.

trunc(x: float) float

Returns the nearest integer not greater in magnitude than the given value.

cbrt(x: float) float

Computes cubic root of x.

exp(x: float) float

Returns e raised to the x power.

exp2(x: float) float

Returns 2 raised to the x power.

expm1(x: float) float

Returns e raised to the x power, minus one.

log(x: float) float

Computes natural logarithm (to base e).

log2(x: float) float

Computes binary logarithm (to base 2).

log10(x: float) float

Computes common logarithm (to base 10).

log1p(x: float) float

Computes natural logarithm (to base e) of 1 plus the given number.

pow(x: float, y: float) float

Returns the value of x to the power of y (x^y).

fabs(x: float) float

Computes absolute value of a floating-point value

sqrt(x: float) float

Returns the square root of the given number.

acos(x: float) float

Computes arc cosine.

asin(x: float) float

Computes arc sine.

atan(x: float) float

Computes arc tangent.

atan2(x: float, y: float) float

Computes arc tangent, using signs to determine quadrants.

cos(x: float) float

Computes cosine.

sin(x: float) float

Computes sine.

tan(x: float) float

Computes tangent.

degrees(x: float) float

Convert angle x from radians to degrees.

radians(x: float) float

Convert angle x from degrees to radians.

acosh(x: float) float

Computes hyperbolic arc cosine.

asinh(x: float) float

Computes hyperbolic arc sine.

atanh(x: float) float

Computes hyperbolic arc tangent.

cosh(x: float) float

Computes hyperbolic cosine.

sinh(x: float) float

Computes hyperbolic sine.

tanh(x: float) float

Computes hyperbolic tangent.

erf(x: float) float

Computes error function.

erfc(x: float) float

Computes complementary error function.

gamma(x: float) float

Computes gamma function.

lgamma(x: float) float

Computes natural logarithm of the absolute value of the gamma function.