pub struct DashuFloat { /* private fields */ }Expand description
High-precision wrapper around dashu_float::FBig for WASM-compatible calculations
Implementations§
Source§impl DashuFloat
impl DashuFloat
Sourcepub fn with_precision(value: f64, precision: u32) -> Self
pub fn with_precision(value: f64, precision: u32) -> Self
Create with specified precision (decimal digits)
Sourcepub fn standard(value: f64) -> Self
pub fn standard(value: f64) -> Self
Create with standard precision (40 decimal digits ≈ 128 bits)
Trait Implementations§
Source§impl Add for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Add for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl Clone for DashuFloat
impl Clone for DashuFloat
Source§fn clone(&self) -> DashuFloat
fn clone(&self) -> DashuFloat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DashuFloat
impl Debug for DashuFloat
Source§impl Display for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Display for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl Div for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Div for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl FromPrimitive for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl FromPrimitive for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§fn from_f64(n: f64) -> Option<Self>
fn from_f64(n: f64) -> Option<Self>
Converts a
f64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_f32(n: f32) -> Option<Self>
fn from_f32(n: f32) -> Option<Self>
Converts a
f32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§impl Mul for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Mul for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl Neg for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Neg for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl One for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl One for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl PartialEq for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl PartialEq for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl PartialOrd for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl PartialOrd for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl PrecisionFloat for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl PrecisionFloat for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§fn sqrt_precise(self) -> Self
fn sqrt_precise(self) -> Self
Square root with high precision
Source§fn powf_precise(self, exp: Self) -> Self
fn powf_precise(self, exp: Self) -> Self
Power function with high precision
Source§fn sin_precise(self) -> Self
fn sin_precise(self) -> Self
Trigonometric functions with high precision
Source§fn cos_precise(self) -> Self
fn cos_precise(self) -> Self
Cosine function with high precision
Source§fn tan_precise(self) -> Self
fn tan_precise(self) -> Self
Tangent function with high precision
Source§fn sinh_precise(self) -> Self
fn sinh_precise(self) -> Self
Hyperbolic functions with high precision
Source§fn cosh_precise(self) -> Self
fn cosh_precise(self) -> Self
Hyperbolic cosine with high precision
Source§fn tanh_precise(self) -> Self
fn tanh_precise(self) -> Self
Hyperbolic tangent with high precision
Source§fn ln_precise(self) -> Self
fn ln_precise(self) -> Self
Natural logarithm with high precision
Source§fn exp_precise(self) -> Self
fn exp_precise(self) -> Self
Exponential function with high precision
Source§fn abs_precise(self) -> Self
fn abs_precise(self) -> Self
Absolute value
Source§fn default_tolerance() -> Self
fn default_tolerance() -> Self
Recommended tolerance for numerical calculations
Source§fn orbital_tolerance() -> Self
fn orbital_tolerance() -> Self
Specialized tolerance for orbital mechanics calculations
Source§fn zero_array_4() -> [Self; 4]
fn zero_array_4() -> [Self; 4]
Create a 4-element array filled with zero values
Source§fn zero_matrix_4x4() -> [[Self; 4]; 4]
fn zero_matrix_4x4() -> [[Self; 4]; 4]
Create a 4x4 matrix filled with zero values
Source§impl Sub for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Sub for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Source§impl Zero for DashuFloat
Available on (crate features high-precision or wasm-precision) and non-crate feature native-precision only.
impl Zero for DashuFloat
Available on (crate features
high-precision or wasm-precision) and non-crate feature native-precision only.Auto Trait Implementations§
impl Freeze for DashuFloat
impl RefUnwindSafe for DashuFloat
impl Send for DashuFloat
impl Sync for DashuFloat
impl Unpin for DashuFloat
impl UnwindSafe for DashuFloat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more