Standard Library
std.math
Extended math: powers, logarithms, trigonometry, and float utilities.
Exported functions
Return pi.
Return Euler's number e.
Raise base to the given power.
Return e raised to the given power.
Return the natural logarithm.
Return the base-2 logarithm.
Return the base-10 logarithm.
Return the sine of an angle in radians.
Return the cosine of an angle in radians.
Return the tangent of an angle in radians.
Return the arcsine in radians.
Return the arccosine in radians.
Return the arctangent in radians.
Return the four-quadrant arctangent of y/x in radians.
Return sqrt(x^2 + y^2) without intermediate overflow.
Truncate toward zero, returning an Int.
Return -1, 0, or 1 according to the sign of the value.
Clamp a value into the inclusive range [low, high].
Round down to the nearest integer (same as the @floor builtin).
Round up to the nearest integer (same as the @ceil builtin).
Round to the nearest integer (same as the @round builtin).
Return the absolute value (same as the @abs builtin).
Return the square root (same as the @sqrt builtin).
Return the smaller of two values (same as the @min builtin).
Return the larger of two values (same as the @max builtin).