640157 divided by 18 
Let's see how many times 18 fits into 640157.

Let's proceed to step 1:
6 divided by 18 is 0 with a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Grab the next digit (4) from the dividend, add it to 6, then carry on: 64 / 18

Advancing to step 2:
When dividing 64 by 18, we get 3 with a remainder of 10.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 54 from 64 to get 10.
Bring next digit (0) of the dividend behind the 10 and repeat the process: 100 / 18

Let's proceed to step 3:
The number 18 fits into 100 5 times, leaving a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 35.0
Subtract 90 from 100 to get 10.
Include the next digit (1) from the dividend after 10, then repeat: 101 / 18

Advancing to step 4:
If we divide 101 by 18, we get 5 and a remainder of 11.
Use 5 as the next digit of our solution. 
Result so far: 355.0
Subtracting 90 from 101 leaves us with 11.
Bring next digit (5) of the dividend behind the 11 and repeat the process: 115 / 18

On to step 5:
18 goes into 115 6 times with a remainder of 7.
Put 6 as the next digit of the answer. 
Result so far: 3556.0
Deduct 108 from 115 and we're left with 7.
Include the next digit (7) from the dividend after 7, then repeat: 77 / 18

Step 6:
The number 18 fits into 77 4 times, leaving a remainder of 5.
The number 4 becomes the next digit in our result. 
Result so far: 35564.0
Subtracting 72 from 77 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
18 goes into 50 2 times with a remainder of 14.
Use 2 as the next digit of our solution. 
Result so far: 35564.2
Deduct 36 from 50 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 8:
The number 18 fits into 140 7 times, leaving a remainder of 14.
The next digit of our result is 7. 
Result so far: 35564.27
The remainder is 14 after subtracting 126 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 9:
18 goes into 140 7 times with a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 35564.277
If we take 126 away from 140, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Our division results in 35564.277 with a remaining 0.0014.