945978 divided by 31 
We want to divide 945978 by 31.

Advancing to step 1:
When dividing 9 by 31, we get 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 31

Going ahead to step 2:
The number 31 fits into 94 3 times, leaving a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtract 93 from 94 to get 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 31

On to step 3:
31 goes into 15 0 times with a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 30.0
Subtracting 0 from 15 leaves us with 15.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 31

On to step 4:
When dividing 159 by 31, we get 5 with a remainder of 4.
The next digit of our result is 5. 
Result so far: 305.0
Subtracting 155 from 159 leaves us with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 31

Moving on to step 5:
47 divided by 31 is 1 with a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 3051.0
The remainder is 16 after subtracting 31 from 47.
Bring next digit (8) of the dividend behind the 16 and repeat the process: 168 / 31

Let's proceed to step 6:
31 goes into 168 5 times with a remainder of 13.
Record the quotient 5 as the next digit in the result. 
Result so far: 30515.0
If we subtract 155 from 168, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 7:
If we divide 130 by 31, we get 4 and a remainder of 6.
Use 4 as the next digit of our solution. 
Result so far: 30515.4
If we take 124 away from 130, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 8:
60 divided by 31 is 1 with a remainder of 29.
Write down 1 as next digit of the result. 
Result so far: 30515.41
The remainder is 29 after subtracting 31 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Going ahead to step 9:
290 divided by 31 is 9 with a remainder of 11.
The next digit of our result is 9. 
Result so far: 30515.419
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 10:
When dividing 110 by 31, we get 3 with a remainder of 17.
Record the quotient 3 as the next digit in the result. 
Result so far: 30515.4193
If we take 93 away from 110, we end up 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.

Going ahead to step 11:
When dividing 170 by 31, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 30515.41935
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.

Going ahead to step 12:
31 goes into 150 4 times with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 30515.419354
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.

On to step 13:
260 divided by 31 is 8 with a remainder of 12.
Use 8 as the next digit of our solution. 
Result so far: 30515.4193548
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 14:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 30515.41935483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

The final result is 30515.41935483 with a remainder of 2.7e-08.