[#llvm-divideNearest] = xref:llvm.adoc[llvm]::divideNearest :relfileprefix: ../ :mrdocs: Returns (Numerator / Denominator) rounded by round‐half‐up. Guaranteed to never overflow. == Synopsis Declared in `<llvm/Support/MathExtras.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename U, typename V, typename T = xref:llvm/common_uint.adoc[common_uint<U, V>]> constexpr T divideNearest( U Numerator, V Denominator); ---- == Return Value Numerator divided by Denominator, rounded half up. == Parameters [cols="1,4"] |=== | Name| Description | *Numerator* | Dividend. | *Denominator* | Divisor; must be non‐zero. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#