Skip to main content

Module math

Module math 

Source
Expand description

Pure-Rust #![no_std] IEEE-754 floating-point intrinsics.

Functionsยง

ceil
Returns the smallest integer greater than or equal to x.
floor
Returns the largest integer less than or equal to x.
ln
Computes the natural logarithm $\ln(x)$ using the FDLIBM minimax approximation.
powf
Computes $x^y$ following IEEE-754 special-case rules.
trunc
Returns the integer part of x, rounding toward zero.