Struct std::num::flt2dec::Decoded
[−]
[src]
pub struct Decoded {
pub mant: u64,
pub minus: u64,
pub plus: u64,
pub exp: i16,
pub inclusive: bool,
}Unstable (
flt2dec): internal routines only exposed for testing
Decoded unsigned finite value, such that:
The original value equals to
mant * 2^exp.Any number from
(mant - minus) * 2^expto(mant + plus) * 2^expwill round to the original value. The range is inclusive only wheninclusiveis true.
Fields
mant | Unstable ( flt2dec): internal routines only exposed for testing The scaled mantissa. |
minus | Unstable ( flt2dec): internal routines only exposed for testing The lower error range. |
plus | Unstable ( flt2dec): internal routines only exposed for testing The upper error range. |
exp | Unstable ( flt2dec): internal routines only exposed for testing The shared exponent in base 2. |
inclusive | Unstable ( flt2dec): internal routines only exposed for testing True when the error range is inclusive. In IEEE 754, this is true when the original mantissa was even. |