P3724R4 — Integer division
Jan Schultke
LEWG
Revisions R4May 2026R3Feb 2026
C++ currently only offers truncating integer division in the form of the `/` operator. However, other rounding modes have various use cases too, and implementing these as the user can be surprisingly hard, especially when integer overflow needs to be avoided, and negative inputs are accepted.