Function core::num::dec2flt::algorithm::make_ratio
[−]
[src]
fn make_ratio(x: &mut Big, y: &mut Big, e: i16, k: i16)
Unstable (
dec2flt
): internal routines only exposed for testing
Given x = f
and y = m
where f
represent input decimal digits as usual and m
is the
significand of a floating point approximation, make the ratio x / y
equal to
(f * 10^e) / (m * 2^k)
, possibly reduced by a power of two both have in common.