MCPcopy Create free account
hub / github.com/LASzip/LASzip / DoubleRound

Function DoubleRound

src/mydefs.cpp:766–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764}
765
766double DoubleRound(double value, int decimals) {
767 double scale = pow(10.0, decimals); // e.g. 10^10 for 10 decimal places
768 return std::round(value * scale) / scale;
769}
770
771std::string DoubleToString(double dd, short decimals, bool trim_right_zeros) {
772 char xx[44];

Callers 1

get_scan_angle_dispFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected