Trait accurate::traits::FloatFormat [] [src]

pub trait FloatFormat {
    fn base() -> u32;
fn significand_digits() -> u32;
fn exponent_digits() -> u32; fn base_pow_exponent_digits() -> usize { ... }
fn base_pow_significand_digits_half() -> usize { ... } }

Describes the layout of a floating-point number

Required Methods

The number format's base

The length of the number format's significand field

The length of the number format's exponent field

Provided Methods

The base raised to the power of the exponent`s length

The base raised to the power of half the mantissa`s length

Implementations on Foreign Types

impl FloatFormat for f32
[src]

impl FloatFormat for f64
[src]

Implementors