Constant rustc_const_math::MAX_F32_PLUS_HALF_ULP
[−]
[src]
pub const MAX_F32_PLUS_HALF_ULP: u128=
(1 << <Single>::PRECISION + 1) - 1 << <Single>::MAX_EXP - <Single>::PRECISION as i16
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
This is f32::MAX + (0.5 ULP)
as an integer. Numbers greater or equal to this
are rounded to infinity when converted to f32
.
NB: Computed as maximum significand with an extra 1 bit added (for the half ULP) shifted by the maximum exponent (accounting for normalization).