Import with #import "std/math".
Finite32 :: (value: float32) -> boolFloorInteger :: (value: float32) -> s32CeilInteger :: (value: float32) -> s32SineDegrees :: (degrees: float32) -> float32Reduce to [-pi/2, pi/2] before the Taylor polynomial.
CosineDegrees :: (degrees: float32) -> float32NotANumber :: () -> float64Infinity :: () -> float64Finite64 :: (value: float64) -> boolScaleByPowerOfTwo :: (value: float64, exponent: s32) -> float64value × 2^exponent, applied in exact steps.
RoundToInteger :: (value: float64) -> s64The integer nearest to value, halves away from zero; value must fit s64.
Sqrt :: (value: float64) -> float64Exp :: (value: float64) -> float64Expm1 :: (value: float64) -> float64e^value − 1, accurate near zero: Kahan's correction divides out the rounding of e^value.
Log :: (value: float64) -> float64Log1p :: (value: float64) -> float64ln(1 + value), accurate near zero.
Log10 :: (value: float64) -> float64Log2 :: (value: float64) -> float64Sin :: (value: float64) -> float64Cos :: (value: float64) -> float64Tan :: (value: float64) -> float64Atan :: (value: float64) -> float64Atan2 :: (y: float64, x: float64) -> float64Asin :: (value: float64) -> float64Acos :: (value: float64) -> float64Sinh :: (value: float64) -> float64Cosh :: (value: float64) -> float64Tanh :: (value: float64) -> float64Asinh :: (value: float64) -> float64Acosh :: (value: float64) -> float64Atanh :: (value: float64) -> float64Pow :: (base: float64, exponent: float64) -> float64base^exponent: whole exponents multiply exactly; a negative base needs a whole exponent. Other exponents go through e^(exponent·ln base), which loses about |exponent·ln base| units in the last place.
Cbrt :: (value: float64) -> float64