MCPcopy Create free account
hub / github.com/bdring/FluidNC / DecToString

Method DecToString

FluidNC/capture/WString.cpp:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16std::string String::DecToString(double value, int decimalPlaces) {
17 std::stringstream stream;
18 stream << std::fixed << std::setprecision(decimalPlaces) << value;
19 std::string s = stream.str();
20 return s;
21}
22
23void String::trim() {
24 auto str = this->backbuf;

Callers

nothing calls this directly

Calls 1

setprecisionClass · 0.85

Tested by

no test coverage detected