std.math.float [core] std.math.float.pi pub fn pi() -> f64 — π, the ratio of a circle's circumference to its diameter, rounded to the nearest f64. std.math.float.tau pub fn tau() -> f64 — τ = 2π. std.math.float.e pub fn e() -> f64 — Euler's number, the base of the natural logarithm. std.math.float.inf pub fn inf() -> f64 — Positive infinity. std.math.float.neg_inf pub fn neg_inf() -> f64 — Negative infinity. std.math.float.nan pub fn nan() -> f64 — A quiet NaN. std.math.float.epsilon pub fn epsilon() -> f64 — The difference between 1.0 and the next representable f64 (2^-52). std.math.float.f_min pub fn f_min() -> f64 — The least finite f64 — the most negative one, not the smallest positive one (that is f_min_positive, a nursery candidate this module names and does not ship). std.math.float.f_max pub fn f_max() -> f64 — The greatest finite f64. std.math.float.is_nan pub fn is_nan(x: f64) -> bool — True exactly for NaN. std.math.float.is_inf pub fn is_inf(x: f64) -> bool — True for either infinity. std.math.float.is_finite pub fn is_finite(x: f64) -> bool — True for everything that is neither NaN nor an infinity. std.math.float.is_sign_negative pub fn is_sign_negative(x: f64) -> bool — True when x carries a negative sign bit — which includes -0.0, the value x < 0.0 cannot see. std.math.float.abs pub fn abs(x: f64) -> f64 — Magnitude. std.math.float.signum pub fn signum(x: f64) -> f64 — The sign of x as a float: 1.0, -1.0, the zero itself for ±0.0 (sign preserved), and NaN for NaN. std.math.float.copysign pub fn copysign(x: f64, y: f64) -> f64 — x with the sign of y. std.math.float.trunc pub fn trunc(x: f64) -> f64 — Truncation toward zero: the integral part, with the sign of x (trunc(-0.5) is -0.0). std.math.float.floor pub fn floor(x: f64) -> f64 — The greatest integer at or below x. std.math.float.ceil pub fn ceil(x: f64) -> f64 — The least integer at or above x. std.math.float.round pub fn round(x: f64) -> f64 — Rounds to the nearest integer, halves away from zero — the schoolbook rule, not the banker's rounding IEEE arithmetic itself uses. std.math.float.fract pub fn fract(x: f64) -> f64 — The fractional part: x - trunc(x), carrying the sign of x. std.math.float.sqrt pub fn sqrt(x: f64) -> f64 — The positive square root. std.math.float.cbrt pub fn cbrt(x: f64) -> f64 — The real cube root, defined for negative arguments too (unlike powf(x, 1.0 / 3.0)). std.math.float.hypot pub fn hypot(a: f64, b: f64) -> f64 — sqrt(a*a + b*b) computed without the intermediate overflow the literal formula suffers. std.math.float.exp pub fn exp(x: f64) -> f64 — e raised to the power x. std.math.float.exp2 pub fn exp2(x: f64) -> f64 — 2.0 raised to the power x, exact at every integral x in range. std.math.float.ln pub fn ln(x: f64) -> f64 — The natural logarithm. std.math.float.log2 pub fn log2(x: f64) -> f64 — The base-2 logarithm, exact at every power of two. std.math.float.log10 pub fn log10(x: f64) -> f64 — The base-10 logarithm. std.math.float.sin pub fn sin(x: f64) -> f64 — The sine of x in radians. std.math.float.cos pub fn cos(x: f64) -> f64 — The cosine of x in radians. std.math.float.tan pub fn tan(x: f64) -> f64 — The tangent of x in radians, as sin(x) / cos(x) over one shared reduction. std.math.float.atan pub fn atan(x: f64) -> f64 — The arctangent, in [-pi/2, pi/2]. std.math.float.asin pub fn asin(x: f64) -> f64 — The arcsine, in [-pi/2, pi/2]. std.math.float.acos pub fn acos(x: f64) -> f64 — The arccosine, in [0, pi]. std.math.float.atan2 pub fn atan2(y: f64, x: f64) -> f64 — The angle of the point (x, y) from the positive x-axis, in (-pi, pi], with the quadrant taken from both signs. std.math.float.powf pub fn powf(b: f64, e: f64) -> f64 — b raised to the real power e, as exp(e * ln b) with the sign and the special cases handled first. std.math.float.to_bits pub fn to_bits(x: f64) -> int — The IEEE-754 binary64 encoding of x, read as a signed int: the sign bit lands in the sign of the result, so a negative float has a negative encoding and from_bits inverts it exactly. std.math.float.from_bits pub fn from_bits(b: int) -> f64 — The f64 whose IEEE-754 binary64 encoding, read as a signed int, is b — the inverse of to_bits on every finite value and on the infinities.