We're dividing 38058 by 31 
Our goal is to divide 38058 by 31.

Let's proceed to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 31

On to step 2:
The number 31 fits into 38 1 times, leaving a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 38, we get 7.
Take the next digit (0) from the dividend and append it to 7, then repeat: 70 / 31

Going ahead to step 3:
When dividing 70 by 31, we get 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Deduct 62 from 70 and we're left with 8.
Include the next digit (5) from the dividend after 8, then repeat: 85 / 31

Step 4:
The number 31 fits into 85 2 times, leaving a remainder of 23.
Write down 2 as next digit of the result. 
Result so far: 122.0
Deduct 62 from 85 and we're left with 23.
Grab the next digit (8) from the dividend, add it to 23, then carry on: 238 / 31

On to step 5:
238 divided by 31 is 7 with a remainder of 21.
Put 7 as the next digit of the answer. 
Result so far: 1227.0
If we subtract 217 from 238, we get 21.
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 6:
31 goes into 210 6 times with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 1227.6
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.

Advancing to step 7:
240 divided by 31 is 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 1227.67
If we subtract 217 from 240, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 8:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 1227.677
Subtracting 217 from 230 leaves us with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 1227.677 with a remaining 0.0013.