We look at the division of 18440 by 31 
Our goal is to divide 18440 by 31.

On to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 31

Moving on to step 2:
31 can be fit into 18 0 times, resulting in a remainder of 18.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 18 leaves us with 18.
Bring next digit (4) of the dividend behind the 18 and repeat the process: 184 / 31

Step 3:
31 can be fit into 184 5 times, resulting in a remainder of 29.
Write down 5 as next digit of the result. 
Result so far: 5.0
Deduct 155 from 184 and we're left with 29.
Bring next digit (4) of the dividend behind the 29 and repeat the process: 294 / 31

Advancing to step 4:
When dividing 294 by 31, we get 9 with a remainder of 15.
The number 9 becomes the next digit in our result. 
Result so far: 59.0
Subtract 279 from 294 to get 15.
Bring next digit (0) of the dividend behind the 15 and repeat the process: 150 / 31

Step 5:
If we divide 150 by 31, we get 4 and a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 594.0
If we take 124 away from 150, 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.

Going ahead to step 6:
260 divided by 31 is 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 594.8
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 7:
When dividing 120 by 31, we get 3 with a remainder of 27.
The next digit of our result is 3. 
Result so far: 594.83
Subtracting 93 from 120 leaves us with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 8:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 594.838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 9:
31 can be fit into 220 7 times, resulting in a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 594.8387
Subtracting 217 from 220 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 10:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The next digit of our result is 0. 
Result so far: 594.8387
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 11:
If we divide 300 by 31, we get 9 and a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 594.838709
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 12:
31 can be fit into 210 6 times, resulting in a remainder of 24.
The next digit of our result is 6. 
Result so far: 594.8387096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 13:
240 divided by 31 is 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 594.83870967
Deduct 217 from 240 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

In conclusion, the division gives 594.83870967 with a balance of 2.3e-08.