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

Method use_fixed

include/fmt/format.h:2502–2504  ·  view source on GitHub ↗

Use the fixed notation if the exponent is in [-4, exp_upper), e.g. 0.0001 instead of 1e-04. Otherwise use the exponent notation.

Source from the content-addressed store, hash-verified

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.
2502constexpr auto use_fixed(int exp, int exp_upper) -> bool {
2503 return exp >= -4 && exp < exp_upper;
2504}
2505
2506template <typename Char> class fallback_digit_grouping {
2507 public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected