Trait accurate::util::traits::Split
[−]
[src]
pub trait Split: Float { fn split_factor() -> Self; fn split(self) -> (Self, Self) { ... } }
Split a floating-point number
Required Methods
fn split_factor() -> Self
Split factor used in the algorithm
Provided Methods
fn split(self) -> (Self, Self)
Split a floating-point number
Splits a number x into two parts:
x = h + t
with h and t nonoverlapping and t.abs() <= h.abs()
References
Due to Veltkamp, published in Dekker 71