math
Functions
math_abs(): Int (std/math.qz:19)
Absolute value of an integer.
math_abs_f64(): F64 (std/math.qz:27)
Absolute value of a float.
math_min(): Int (std/math.qz:35)
Minimum of two integers.
math_max(): Int (std/math.qz:43)
Maximum of two integers.
math_min_f64(): F64 (std/math.qz:51)
Minimum of two floats.
math_max_f64(): F64 (std/math.qz:59)
Maximum of two floats.
math_pow(): Int (std/math.qz:68)
Integer power: base^exp (non-negative exp only). Returns 1 for exp == 0.
math_clamp(): Int (std/math.qz:90)
Clamp integer to range [lo, hi].
math_clamp_f64(): F64 (std/math.qz:101)
Clamp float to range [lo, hi].
math_sign(): Int (std/math.qz:112)
Sign of an integer: -1, 0, or 1.
math_gcd(): Int (std/math.qz:123)
Greatest common divisor (Euclidean algorithm).
math_lcm(): Int (std/math.qz:135)
Least common multiple.
math_is_even(): Bool (std/math.qz:143)
Check if an integer is even.
math_is_odd(): Bool (std/math.qz:148)
Check if an integer is odd.
math_div(): Int (std/math.qz:153)
Integer division (truncated toward zero).
math_mod(): Int (std/math.qz:158)
Integer modulo.
math_to_radians(): F64 (std/math.qz:166)
Convert degrees to radians.
math_to_degrees(): F64 (std/math.qz:171)
Convert radians to degrees.
math_sin(): F64 (std/math.qz:176)
Trigonometric wrappers for clean stdlib API.
math_cos(): F64 (std/math.qz:177)
math_tan(): F64 (std/math.qz:178)
math_asin(): F64 (std/math.qz:179)
math_acos(): F64 (std/math.qz:180)
math_atan(): F64 (std/math.qz:181)
math_atan2(): F64 (std/math.qz:182)
math_sqrt(): F64 (std/math.qz:185)
Logarithmic/exponential wrappers.
math_log(): F64 (std/math.qz:186)
math_log2(): F64 (std/math.qz:187)
math_log10(): F64 (std/math.qz:188)
math_exp(): F64 (std/math.qz:189)
math_pow_f64(): F64 (std/math.qz:192)
Float power (overloads existing Int version).
math_floor(): F64 (std/math.qz:195)
Rounding wrappers.