Returns (Numerator / Denominator) rounded by round-half-up. Guaranteed to never overflow.
Declared in <llvm/Support/MathExtras.h>
template<
typename U,
typename V,
typename T = common_uint<U, V>>
constexpr
T
divideNearest(
U Numerator,
V Denominator);
Numerator divided by Denominator, rounded half up.
| Name | Description |
|---|---|
| Numerator | Dividend. |
| Denominator | Divisor; must be non-zero. |