We're dividing 968170 by 31 
We want to divide 968170 by 31.

Step 1:
31 goes into 9 0 times with a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Append the next digit (6) from the dividend to 9 and continue with: 96 / 31

Advancing to step 2:
31 can be fit into 96 3 times, resulting in a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we take 93 away from 96, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 31

Going ahead to step 3:
38 divided by 31 is 1 with a remainder of 7.
Write down 1 as next digit of the result. 
Result so far: 31.0
Subtract 31 from 38 to get 7.
Fetch the next digit (1) from the dividend, attach it to 7 and continue: 71 / 31

Advancing to step 4:
If we divide 71 by 31, we get 2 and a remainder of 9.
Write down 2 as next digit of the result. 
Result so far: 312.0
Deduct 62 from 71 and we're left with 9.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 31

Going ahead to step 5:
When dividing 97 by 31, we get 3 with a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 3123.0
If we subtract 93 from 97, we get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 31

Advancing to step 6:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 31231.0
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 7:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 31231.2
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 8:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 31231.29
Subtracting 279 from 280 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 9:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 31231.29
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 10:
If we divide 100 by 31, we get 3 and a remainder of 7.
The next digit of our result is 3. 
Result so far: 31231.2903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 11:
31 goes into 70 2 times with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 31231.29032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
80 divided by 31 is 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 31231.290322
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 31231.290322 with a balance of 1.8e-06.