Function core::num::dec2flt::algorithm::algorithm_r
[−]
[src]
fn algorithm_r<T: RawFloat>(f: &Big, e: i16, z0: T) -> T
Unstable (
dec2flt
): internal routines only exposed for testing
An iterative algorithm that improves a floating point approximation of f * 10^e
.
Each iteration gets one unit in the last place closer, which of course takes terribly long to
converge if z0
is even mildly off. Luckily, when used as fallback for Bellerophon, the
starting approximation is off by at most one ULP.