d1_mini_pro-sensor-mqtt/src/utils.cpp

3 lines
76 B
C++

double round2 (double value) {
return (int)(value * 100 + 0.5) / 100.0;
}