Let's divide 315888 by 31
Our goal is to divide 315888 by 31.

On to step 1:
3 divided by 31 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 31

Advancing to step 2:
The number 31 fits into 31 1 times, leaving a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 31 from 31 leaves us with 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 31

Moving on to step 3:
31 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we subtract 0 from 5, we get 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 31

Going ahead to step 4:
31 goes into 58 1 times with a remainder of 27.
Put 1 as the next digit of the answer. 
Result so far: 101.0
The remainder is 27 after subtracting 31 from 58.
Fetch the next digit (8) from the dividend, attach it to 27 and continue: 278 / 31

Step 5:
The number 31 fits into 278 8 times, leaving a remainder of 30.
The next digit of our result is 8. 
Result so far: 1018.0
If we take 248 away from 278, we end up with 30.
Bring next digit (8) of the dividend behind the 30 and repeat the process: 308 / 31

Moving on to step 6:
When dividing 308 by 31, we get 9 with a remainder of 29.
Write down 9 as next digit of the result. 
Result so far: 10189.0
If we take 279 away from 308, we end up with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

On to step 7:
31 can be fit into 290 9 times, resulting in a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 10189.9
If we take 279 away from 290, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 8:
110 divided by 31 is 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 10189.93
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 9:
31 goes into 170 5 times with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 10189.935
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 10:
150 divided by 31 is 4 with a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 10189.9354
Subtracting 124 from 150 leaves us 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.

On to step 11:
31 goes into 260 8 times with a remainder of 12.
The next digit of our result is 8. 
Result so far: 10189.93548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 12:
If we divide 120 by 31, we get 3 and a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 10189.935483
Deduct 93 from 120 and we're left 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 13:
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: 10189.9354838
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 14:
If we divide 220 by 31, we get 7 and a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 10189.93548387
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.

The quotient of the division is 10189.93548387, and the remainder is 3e-09.