Skip to main content

Module float

Module float 

Source
Expand description

Float (f64) and Float32 (f32). The transcendental functions keep the bare C names of math.h and are computed by the libm crate; sqrt uses the exact f64::sqrt.

Functions§

acos⚠
acosf⚠
acosh⚠
acoshf⚠
asin⚠
asinf⚠
asinh⚠
asinhf⚠
atan⚠
atan2⚠
atan2f⚠
atanf⚠
atanh⚠
atanhf⚠
cbrt⚠
cbrtf⚠
ceil⚠
ceilf⚠
cos⚠
cosf⚠
cosh⚠
coshf⚠
exp⚠
exp2⚠
exp2f⚠
expf⚠
fabs⚠
fabsf⚠
floor⚠
floorf⚠
fma⚠
fmaf⚠
lean_float32_add⚠
lean_float32_beq⚠
lean_float32_decLe⚠
lean_float32_decLt⚠
lean_float32_div⚠
lean_float32_frexp⚠
(mantissa, exponent) with the exponent an Int (0 for non-finite values).
lean_float32_isfinite⚠
lean_float32_isinf⚠
lean_float32_isnan⚠
lean_float32_mul⚠
lean_float32_negate⚠
lean_float32_of_bits⚠
Bit pattern to float; NaNs become the quiet NaN.
lean_float32_scaleb⚠
a * 2^b for an Int b (borrowed).
lean_float32_sub⚠
lean_float32_to_bits⚠
Float to bit pattern; NaNs give the quiet NaN pattern.
lean_float32_to_float⚠
lean_float32_to_int8⚠
lean_float32_to_int16⚠
lean_float32_to_int32⚠
lean_float32_to_int64⚠
lean_float32_to_isize⚠
lean_float32_to_string⚠
lean_float32_to_uint8⚠
lean_float32_to_uint16⚠
lean_float32_to_uint32⚠
lean_float32_to_uint64⚠
lean_float32_to_usize⚠
lean_float_add⚠
lean_float_beq⚠
lean_float_decLe⚠
lean_float_decLt⚠
lean_float_div⚠
lean_float_frexp⚠
(mantissa, exponent) with the exponent an Int (0 for non-finite values).
lean_float_isfinite⚠
lean_float_isinf⚠
lean_float_isnan⚠
lean_float_mul⚠
lean_float_negate⚠
lean_float_of_bits⚠
Bit pattern to float; NaNs become the quiet NaN.
lean_float_scaleb⚠
a * 2^b for an Int b (borrowed).
lean_float_sub⚠
lean_float_to_bits⚠
Float to bit pattern; NaNs give the quiet NaN pattern.
lean_float_to_float32⚠
lean_float_to_int8⚠
lean_float_to_int16⚠
lean_float_to_int32⚠
lean_float_to_int64⚠
lean_float_to_isize⚠
lean_float_to_string⚠
lean_float_to_uint8⚠
lean_float_to_uint16⚠
lean_float_to_uint32⚠
lean_float_to_uint64⚠
lean_float_to_usize⚠
log⚠
log2⚠
log2f⚠
log10⚠
log10f⚠
logf⚠
pow⚠
powf⚠
round⚠
roundf⚠
sin⚠
sinf⚠
sinh⚠
sinhf⚠
sqrt⚠
sqrtf⚠
tan⚠
tanf⚠
tanh⚠
tanhf⚠