# Integer division calculator

Find the integer quotient of the division.

Number to be divided

Number which divides the dividend

Examples:

## #What is an integer division?

Integer Division is defined as the division in which the remainder (fractional part) is simply dropped or discarded, no matter how big it is. Thus, the resultant value of an Integer division is always an integer.

Eg: (dividend) 12 / 3 (divisor) = 4 (quotient).

## #How do you calculate integer division?

The integer division can be calculated by following the fundamental rules:

• ### Integers division with positive signs

When a positive integer is divided by another positive integer, the result will always be positive.

Example:
(+6) / (+2) = (+3)

• ### Integers division with negative signs

When a negative integer is divided by a negative integer, the result will always be positive.

Example:
(-6) / (-2) = (3)

• ### Integers division with unlike signs

When an integer is divided by another integer of the opposite sign, the result will always negative.

Example:
(+6) / (-2) = (-3)

## #Examples of integer division

Devide: -12 / -5

### Solution:

1. The first step is to find the absolute values (values without any sign) of given integers

|-12|=12

|-5|=5

2. Next, you have to divide the numbers and find their quotient.

12 / 5 = 2.4 = 2

Here, we will discard the fractional part.

3. At the end, you have to evaluate the answer. As, we are dividing the integers having the same signs, i.e.; negative. So, that the resultant will have a positive sign.

(-12) / (-5) = +2

In case of three Integers: -82 / +3 / -7

### Solution:

In the case of three or more than three integers, we need to perform a divide operation from left to right. In such cases, we use parentheses to make a sense of calculation.

The parentheses shows that we have to divide the first two integers that are on the left side. The answer we obtained by the first two integers will be further divided by the third integer.

1. -82 / +3 / -7 = (-82 / +3) / -7
2. -82 will be divided by +3, resulting -27.

3. It is the negative quotient as we are dividing two integers that have different signs.

(-82 / +3) = (-27.3) = (-27)

Here, we will discard the fractional part.

As we are dividing two integers that have different signs, the resultant value will be negative.

4. Now, we take that quotient and we divide it by the integer that follows.

(-27) / -7 = +5.4= +5

Here, we will discard the fractional part. As the both values have same signs, the answer will carry a positive sign