380170 ÷ 31 
We want to divide 380170 by 31.

Step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 31

Let's proceed to step 2:
When dividing 38 by 31, we get 1 with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 31 from 38 and we're left with 7.
Include the next digit (0) from the dividend after 7, then repeat: 70 / 31

Let's proceed to step 3:
The number 31 fits into 70 2 times, leaving a remainder of 8.
The next digit of our result is 2. 
Result so far: 12.0
The remainder is 8 after subtracting 62 from 70.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 31

On to step 4:
The number 31 fits into 81 2 times, leaving a remainder of 19.
Write down 2 as next digit of the result. 
Result so far: 122.0
If we subtract 62 from 81, we get 19.
Include the next digit (7) from the dividend after 19, then repeat: 197 / 31

Let's proceed to step 5:
197 divided by 31 is 6 with a remainder of 11.
Write down 6 as next digit of the result. 
Result so far: 1226.0
Subtract 186 from 197 to get 11.
Fetch the next digit (0) from the dividend, attach it to 11 and continue: 110 / 31

Let's proceed to step 6:
When dividing 110 by 31, we get 3 with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 12263.0
Subtract 93 from 110 to get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
31 goes into 170 5 times with a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 12263.5
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 8:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 12263.54
Deduct 124 from 150 and we're left 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 9:
31 goes into 260 8 times with a remainder of 12.
Put 8 as the next digit of the answer. 
Result so far: 12263.548
Subtracting 248 from 260 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 10:
If we divide 120 by 31, we get 3 and a remainder of 27.
The next digit of our result is 3. 
Result so far: 12263.5483
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.

Advancing to step 11:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 12263.54838
Subtract 248 from 270 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 12:
220 divided by 31 is 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 12263.548387
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Let's proceed to step 13:
31 goes into 30 0 times with a remainder of 30.
The next digit of our result is 0. 
Result so far: 12263.548387
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 14:
300 divided by 31 is 9 with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 12263.54838709
Subtract 279 from 300 to 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.

In conclusion, the division gives 12263.54838709 with a balance of 2.1e-08.