BigFloat

Struct BigFloat 

Source
#[repr(C)]
pub struct BigFloat { pub sign_biased_exponent: u64, /* private fields */ }

Fields§

§sign_biased_exponent: u64

Implementations§

Source§

impl BigFloat

Source

pub fn zero(precision_bits: u64) -> BoxFloat

Source

pub const fn precision_bits(&self) -> u64

Source

pub const fn sign(&self) -> Sign

Source

pub const fn exponent(&self) -> Exponent

Source

pub const fn mantissa_len(&self) -> usize

Source

pub const fn mantissa(&self) -> &[Limb]

Source

pub fn mantissa_mut(&mut self) -> &mut [Limb]

Source

pub const fn full_mantissa(&self) -> &[Limb]

Source

pub fn full_mantissa_mut(&mut self) -> &mut [Limb]

Source

pub fn copy_from(&mut self, src: &BigFloat, rnd: Round) -> Approx

Source

pub fn to_f64(&self, rnd: Round) -> (f64, Approx)

Source

pub fn repr(&self) -> &FloatRepr

Source

pub const fn max_precision() -> u64

Trait Implementations§

Source§

impl Display for BigFloat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more