15 return b ? ((
int) (100.0 * a / b + 0.5)) : 0;
21 return b ? ((int64_t) (100.0 * a / b + 0.5)) : 0;
27 return b ? (100.0 * a / b) : 0.0;
36 return (
cur * (N - 1.0) + newD) / N;
45 return (
cur * (n - 1) + newI) / n;
A const & max(A const &lhs, A const &rhs)
int intPercent(const int a, const int b)
double doubleAverage(const double, const double, int, const int)
double doublePercent(const double, const double)
int64_t int64Percent(const int64_t a, const int64_t b)
int intAverage(const int, const int, int, const int)