Submodules
Constants
E

float

Equal to 2.718281828459045.

INF

float

The float infinity value. The result of 1.0 / 0.0.

INT_MAX

int

The maximum value that can be held by an integer. Equal to 9223372036854775807.

INT_MIN

int

The minimum value that can be held by an integer. Equal to -9223372036854775808.

NAN

float

The float "not a number" value. The result of 0.0 / 0.0.

PI

float

Equal to 3.14159265358979323846264338327950288.

TAU

float

Equal to 6.28318530717958647692528676655900577.

Procedures
abs

Returns the absolute value of the float or integer x.

Arguments

x - (int | float)

Returns

(int | float)

acos

Returns the inverse cosine of the given float in radians.

Arguments

arg0 - float

Returns

float

acosh

Returns the inverse hyperbolic cosine of the given float.

Arguments

arg0 - float

Returns

float

asin

Returns the inverse sine of the given float in radians.

Arguments

arg0 - float

Returns

float

asinh

Returns the inverse hyperbolic sine of the given float.

Arguments

arg0 - float

Returns

float

atan

Returns the inverse tangent of the given float in radians.

Arguments

arg0 - float

Returns

float

atan2

Returns the angle in the plane in radians between the positive x-axis and the ray from (0, 0) to the point specified by the two given floats.

Arguments

arg0 - float

arg1 - float

Returns

float

atanh

Returns the inverse hyperbolic tangent of the given float.

Arguments

arg0 - float

Returns

float

cbrt

Returns the cubic root of the given float.

Arguments

arg0 - float

Returns

float

ceil

Returns the given float rounded to the nearest integer towards positive infinity (rounding up).

Arguments

arg0 - float

Returns

float

clamp

Returns the integer or float x. If x is less than min, min is returned instead. If x is greater than max, max is returned instead.

Arguments

x - (int | float)

min - (int | float)

max - (int | float)

Returns

(int | float)

cos

Returns the cosine of the given float in radians.

Arguments

arg0 - float

Returns

float

cosh

Returns the hyperbolic cosine of the given float.

Arguments

arg0 - float

Returns

float

exp

Returns e raised to the power of the given float.

Arguments

arg0 - float

Returns

float

expm1

Returns e raised to the power of the given float, subtracted by 1.

Arguments

arg0 - float

Returns

float

floor

Returns the given float rounded to the nearest integer towards negative infinity (rounding down).

Arguments

arg0 - float

Returns

float

hypot

Returns the square root of the sum of the squares of the given floats.

Arguments

arg0 - float

arg1 - float

Returns

float

log

Returns the natural logarithm (base e) of the given float.

Arguments

arg0 - float

Returns

float

log10

Returns the base 10 logarithm of the given float.

Arguments

arg0 - float

Returns

float

log1p

Returns the natural logarithm (base e) of the given float plus 1.

Arguments

arg0 - float

Returns

float

log2

Returns the base 2 logarithm of the given float.

Arguments

arg0 - float

Returns

float

max

Returns the larger integer or float of a and b.

Arguments

a - (int | float)

b - (int | float)

Returns

(int | float)

min

Returns the smaller integer or float of a and b.

Arguments

a - (int | float)

b - (int | float)

Returns

(int | float)

pow

Returns the first float raised to the power of the second.

Arguments

arg0 - float

arg1 - float

Returns

float

round

Returns the given float rounded to the nearest integer (rounding to whatever integer is closest).

Arguments

arg0 - float

Returns

float

sin

Returns the sine of the given float in radians.

Arguments

arg0 - float

Returns

float

sinh

Returns the hyperbolic sine of the given float.

Arguments

arg0 - float

Returns

float

sqrt

Returns the square root of the given float.

Arguments

arg0 - float

Returns

float

tan

Returns the tangent of the given float in radians.

Arguments

arg0 - float

Returns

float

tanh

Returns the hyperbolic tangent of the given float.

Arguments

arg0 - float

Returns

float

trunc

Returns the given float rounded to the nearest integer towards zero (rounding up if negative and down if positive).

Arguments

arg0 - float

Returns

float