MCPcopy Create free account
hub / github.com/fmtlib/fmt / exp_upper

Method exp_upper

include/fmt/format.h:2494–2498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2492// Numbers with exponents greater or equal to the returned value will use
2493// the exponential notation.
2494template <typename T> FMT_CONSTEVAL auto exp_upper() -> int {
2495 return std::numeric_limits<T>::digits10 != 0
2496 ? min_of(16, std::numeric_limits<T>::digits10 + 1)
2497 : 16;
2498}
2499
2500// Use the fixed notation if the exponent is in [-4, exp_upper),
2501// e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.

Callers

nothing calls this directly

Calls 1

min_ofFunction · 0.85

Tested by

no test coverage detected