MCPcopy Create free account
hub / github.com/catboost/catboost / FloatToString

Function FloatToString

util/string/cast.h:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53template <typename T>
54inline TString FloatToString(const T& t, EFloatToStringMode mode = PREC_AUTO, int ndigits = 0) {
55 char buf[512]; // Max<double>() with mode = PREC_POINT_DIGITS has 309 digits before the decimal point
56 size_t count = FloatToString(t, buf, sizeof(buf), mode, ndigits);
57 return TString(buf, count);
58}
59
60namespace NPrivate {
61 template <class T, bool isSimple>

Callers 4

Y_UNIT_TESTFunction · 0.70
WriteFloatImplMethod · 0.50
WriteFloatImplMethod · 0.50
format.hFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected