We divide 3165936 by 398
We want to divide 3165936 by 398.

Going ahead to step 1:
If we divide 3 by 398, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 398

Going ahead to step 2:
31 divided by 398 is 0 with a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Take the next digit (6) from the dividend and append it to 31, then repeat: 316 / 398

Going ahead to step 3:
The number 398 fits into 316 0 times, leaving a remainder of 316.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 316 after subtracting 0 from 316.
Include the next digit (5) from the dividend after 316, then repeat: 3165 / 398

On to step 4:
3165 divided by 398 is 7 with a remainder of 379.
The next digit of our result is 7. 
Result so far: 7.0
Deduct 2786 from 3165 and we're left with 379.
Append the next digit (9) from the dividend to 379 and continue with: 3799 / 398

Moving on to step 5:
If we divide 3799 by 398, we get 9 and a remainder of 217.
Record the quotient 9 as the next digit in the result. 
Result so far: 79.0
Subtracting 3582 from 3799 leaves us with 217.
Bring next digit (3) of the dividend behind the 217 and repeat the process: 2173 / 398

Advancing to step 6:
The number 398 fits into 2173 5 times, leaving a remainder of 183.
Use 5 as the next digit of our solution. 
Result so far: 795.0
The remainder is 183 after subtracting 1990 from 2173.
Include the next digit (6) from the dividend after 183, then repeat: 1836 / 398

Step 7:
The number 398 fits into 1836 4 times, leaving a remainder of 244.
Write down 4 as next digit of the result. 
Result so far: 7954.0
Subtracting 1592 from 1836 leaves us with 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

On to step 8:
If we divide 2440 by 398, we get 6 and a remainder of 52.
Put 6 as the next digit of the answer. 
Result so far: 7954.6
Deduct 2388 from 2440 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 9:
When dividing 520 by 398, we get 1 with a remainder of 122.
Record the quotient 1 as the next digit in the result. 
Result so far: 7954.61
If we take 398 away from 520, we end up with 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

Let's proceed to step 10:
398 goes into 1220 3 times with a remainder of 26.
Record the quotient 3 as the next digit in the result. 
Result so far: 7954.613
If we take 1194 away from 1220, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 11:
260 divided by 398 is 0 with a remainder of 260.
Write down 0 as next digit of the result. 
Result so far: 7954.613
Deduct 0 from 260 and we're left with 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

Advancing to step 12:
The number 398 fits into 2600 6 times, leaving a remainder of 212.
Write down 6 as next digit of the result. 
Result so far: 7954.61306
Subtract 2388 from 2600 to get 212.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2120, and continue the process.

Step 13:
When dividing 2120 by 398, we get 5 with a remainder of 130.
Write down 5 as next digit of the result. 
Result so far: 7954.613065
If we subtract 1990 from 2120, we get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Step 14:
When dividing 1300 by 398, we get 3 with a remainder of 106.
Put 3 as the next digit of the answer. 
Result so far: 7954.6130653
Subtract 1194 from 1300 to get 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Advancing to step 15:
If we divide 1060 by 398, we get 2 and a remainder of 264.
Write down 2 as next digit of the result. 
Result so far: 7954.61306532
If we take 796 away from 1060, we end up with 264.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

The final result is 7954.61306532 with a remainder of 2.64e-07.