semf
|
Class that divides 2 integers with a correct rounding. If the result has a remainder (decimal) less than .5, it will be down rounded (result is the quotient); otherwise it will be up rounded (result is quotient + 1). More...
#include <dividewithround.h>
Static Public Member Functions | |
static intmax_t | divide (intmax_t dividend, intmax_t divisor) |
Divides 2 integers with the right rounding. More... | |
Class that divides 2 integers with a correct rounding. If the result has a remainder (decimal) less than .5, it will be down rounded (result is the quotient); otherwise it will be up rounded (result is quotient + 1).
Definition at line 22 of file dividewithround.h.
|
static |
Divides 2 integers with the right rounding.
dividend | The number which we divide is called the dividend. |
divisor | The number by which we divide is called the divisor. |
Definition at line 14 of file dividewithround.cpp.