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

Method adjust_precision

include/fmt/format.h:2678–2684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2676}
2677
2678inline FMT_CONSTEXPR20 void adjust_precision(int& precision, int exp10) {
2679 // Adjust fixed precision by exponent because it is relative to decimal
2680 // point.
2681 if (exp10 > 0 && precision > max_value<int>() - exp10)
2682 FMT_THROW(format_error("number is too big"));
2683 precision += exp10;
2684}
2685
2686class bigint {
2687 private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected