core::num::flt2dec::MAX_SIG_DIGITS [] [src]

pub const MAX_SIG_DIGITS: usize = 17
Unstable (flt2dec)

: internal routines only exposed for testing

The minimum size of buffer necessary for the shortest mode.

It is a bit non-trivial to derive, but this is one plus the maximal number of significant decimal digits from formatting algorithms with the shortest result. The exact formula is ceil(# bits in mantissa * log_10 2 + 1).