This is the formula for integer division (for dividing x
by y
) with rounding up (from here):
q = (x + y - 1) / y;
y
is called the denominator.
Is there any widely accepted term for y - 1
in this formula?
This is the formula for integer division (for dividing x
by y
) with rounding up (from here):
q = (x + y - 1) / y;
y
is called the denominator.
Is there any widely accepted term for y - 1
in this formula?