We look at the division of 5940164 by 661 
Our goal is to divide 5940164 by 661.

Going ahead to step 1:
661 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (9) from the dividend and append it to 5, then repeat: 59 / 661

Going ahead to step 2:
When dividing 59 by 661, we get 0 with a remainder of 59.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 59 leaves us with 59.
Fetch the next digit (4) from the dividend, attach it to 59 and continue: 594 / 661

Let's proceed to step 3:
If we divide 594 by 661, we get 0 and a remainder of 594.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 594, we get 594.
Grab the next digit (0) from the dividend, add it to 594, then carry on: 5940 / 661

Moving on to step 4:
The number 661 fits into 5940 8 times, leaving a remainder of 652.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we subtract 5288 from 5940, we get 652.
Grab the next digit (1) from the dividend, add it to 652, then carry on: 6521 / 661

On to step 5:
661 can be fit into 6521 9 times, resulting in a remainder of 572.
The next digit of our result is 9. 
Result so far: 89.0
The remainder is 572 after subtracting 5949 from 6521.
Include the next digit (6) from the dividend after 572, then repeat: 5726 / 661

On to step 6:
661 can be fit into 5726 8 times, resulting in a remainder of 438.
Use 8 as the next digit of our solution. 
Result so far: 898.0
If we subtract 5288 from 5726, we get 438.
Bring next digit (4) of the dividend behind the 438 and repeat the process: 4384 / 661

Going ahead to step 7:
When dividing 4384 by 661, we get 6 with a remainder of 418.
Put 6 as the next digit of the answer. 
Result so far: 8986.0
If we subtract 3966 from 4384, we get 418.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4180, and continue the process.

Step 8:
4180 divided by 661 is 6 with a remainder of 214.
Record the quotient 6 as the next digit in the result. 
Result so far: 8986.6
If we take 3966 away from 4180, we end up with 214.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2140, and continue the process.

Let's proceed to step 9:
When dividing 2140 by 661, we get 3 with a remainder of 157.
Write down 3 as next digit of the result. 
Result so far: 8986.63
Subtracting 1983 from 2140 leaves us with 157.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1570, and continue the process.

Let's proceed to step 10:
When dividing 1570 by 661, we get 2 with a remainder of 248.
The number 2 becomes the next digit in our result. 
Result so far: 8986.632
Deduct 1322 from 1570 and we're left with 248.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2480, and continue the process.

Moving on to step 11:
If we divide 2480 by 661, we get 3 and a remainder of 497.
The next digit of our result is 3. 
Result so far: 8986.6323
Deduct 1983 from 2480 and we're left with 497.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4970, and continue the process.

Advancing to step 12:
661 can be fit into 4970 7 times, resulting in a remainder of 343.
Use 7 as the next digit of our solution. 
Result so far: 8986.63237
Subtracting 4627 from 4970 leaves us with 343.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3430, and continue the process.

On to step 13:
When dividing 3430 by 661, we get 5 with a remainder of 125.
Write down 5 as next digit of the result. 
Result so far: 8986.632375
The remainder is 125 after subtracting 3305 from 3430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1250, and continue the process.

Step 14:
If we divide 1250 by 661, we get 1 and a remainder of 589.
The number 1 becomes the next digit in our result. 
Result so far: 8986.6323751
Deduct 661 from 1250 and we're left with 589.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5890, and continue the process.

Moving on to step 15:
When dividing 5890 by 661, we get 8 with a remainder of 602.
Put 8 as the next digit of the answer. 
Result so far: 8986.63237518
Subtracting 5288 from 5890 leaves us with 602.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6020, and continue the process.

The final result is 8986.63237518 with a remainder of 6.02e-07.