MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / ToBinaryStringFullySpecified

Function ToBinaryStringFullySpecified

deps/google-benchmark/src/string_util.cc:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103std::string ToBinaryStringFullySpecified(double value, double threshold,
104 int precision, double one_k = 1024.0) {
105 std::string mantissa;
106 int64_t exponent;
107 ToExponentAndMantissa(value, threshold, precision, one_k, &mantissa,
108 &exponent);
109 return mantissa + ExponentToPrefix(exponent, false);
110}
111
112} // end namespace
113

Callers 2

AppendHumanReadableFunction · 0.85
HumanReadableNumberFunction · 0.85

Calls 2

ToExponentAndMantissaFunction · 0.85
ExponentToPrefixFunction · 0.85

Tested by

no test coverage detected