MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / format_scalar_double

Function format_scalar_double

src/framework/debug/trace.cpp:68–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68std::string format_scalar_double(double value) {
69 char buffer[64];
70 const auto result = std::to_chars(buffer, buffer + sizeof(buffer), value, std::chars_format::general);
71 if (result.ec == std::errc()) {
72 return std::string(buffer, result.ptr);
73 }
74 std::ostringstream out;
75 out.precision(17);
76 out << value;
77 return out.str();
78}
79
80} // namespace
81

Callers 2

trace_log_scalarFunction · 0.85
timing_log_scalarFunction · 0.85

Calls 2

strMethod · 0.80
stringFunction · 0.50

Tested by

no test coverage detected