pub trait Float {
    const MANTISSA_BITS: usize;
    const EXP_BITS: usize;
    const EMAX: i32;

    fn from_fp(neg: bool, mantissa: u64, exp2: u32) -> Self;
}
Expand description

A trait for IEEE754 floating point numbers.

Associated Constants

The bit length of mantissa part.

The bit length of exponent part.

The exponent bias (the default is (1 << (Self::EXP_BITS - 1)) - 1).

Required methods

Produce the float from a sign, a mantissa, and a biased exponent.

Implementations on Foreign Types

Implementors