double round_by_step(double step, double x) {
double tmp1 = x / step;
double t2 = std::round(tmp1);
double res = t2 * step;
return res;
}
x按step round
double round_by_step(double step, double x) {
double tmp1 = x / step;
double t2 = std::round(tmp1);
double res = t2 * step;
return res;
}
x按step round