MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / roundOff

Function roundOff

src/utility.cpp:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129static double roundOff(double n) {
130 double d = n * 100.0;
131 int i = (int) lround(d);//(int) (d + 0.5);
132 d = (float) i / 100.0;
133 return d;
134}
135
136std::string Utility::formatSize(size_t size) {
137

Callers 1

formatSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected