We're dividing 31318479 by 795 
Our goal is to divide 31318479 by 795.

Advancing to step 1:
3 divided by 795 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 795

Advancing to step 2:
795 can be fit into 31 0 times, resulting in a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Fetch the next digit (3) from the dividend, attach it to 31 and continue: 313 / 795

Moving on to step 3:
When dividing 313 by 795, we get 0 with a remainder of 313.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 313, we get 313.
Grab the next digit (1) from the dividend, add it to 313, then carry on: 3131 / 795

Going ahead to step 4:
795 can be fit into 3131 3 times, resulting in a remainder of 746.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 2385 from 3131 and we're left with 746.
Include the next digit (8) from the dividend after 746, then repeat: 7468 / 795

Step 5:
7468 divided by 795 is 9 with a remainder of 313.
Write down 9 as next digit of the result. 
Result so far: 39.0
Subtract 7155 from 7468 to get 313.
Grab the next digit (4) from the dividend, add it to 313, then carry on: 3134 / 795

Step 6:
The number 795 fits into 3134 3 times, leaving a remainder of 749.
Write down 3 as next digit of the result. 
Result so far: 393.0
If we subtract 2385 from 3134, we get 749.
Fetch the next digit (7) from the dividend, attach it to 749 and continue: 7497 / 795

Advancing to step 7:
When dividing 7497 by 795, we get 9 with a remainder of 342.
Use 9 as the next digit of our solution. 
Result so far: 3939.0
Subtracting 7155 from 7497 leaves us with 342.
Fetch the next digit (9) from the dividend, attach it to 342 and continue: 3429 / 795

Moving on to step 8:
795 goes into 3429 4 times with a remainder of 249.
The number 4 becomes the next digit in our result. 
Result so far: 39394.0
If we take 3180 away from 3429, we end up with 249.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2490, and continue the process.

Moving on to step 9:
795 can be fit into 2490 3 times, resulting in a remainder of 105.
Write down 3 as next digit of the result. 
Result so far: 39394.3
Subtract 2385 from 2490 to get 105.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1050, and continue the process.

Step 10:
When dividing 1050 by 795, we get 1 with a remainder of 255.
Put 1 as the next digit of the answer. 
Result so far: 39394.31
If we subtract 795 from 1050, we get 255.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2550, and continue the process.

Let's proceed to step 11:
If we divide 2550 by 795, we get 3 and a remainder of 165.
Use 3 as the next digit of our solution. 
Result so far: 39394.313
If we subtract 2385 from 2550, we get 165.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1650, and continue the process.

Going ahead to step 12:
795 can be fit into 1650 2 times, resulting in a remainder of 60.
Put 2 as the next digit of the answer. 
Result so far: 39394.3132
Subtract 1590 from 1650 to get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 13:
If we divide 600 by 795, we get 0 and a remainder of 600.
Record the quotient 0 as the next digit in the result. 
Result so far: 39394.3132
The remainder is 600 after subtracting 0 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Advancing to step 14:
795 goes into 6000 7 times with a remainder of 435.
Use 7 as the next digit of our solution. 
Result so far: 39394.313207
Subtracting 5565 from 6000 leaves us with 435.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4350, and continue the process.

Moving on to step 15:
The number 795 fits into 4350 5 times, leaving a remainder of 375.
The next digit of our result is 5. 
Result so far: 39394.3132075
The remainder is 375 after subtracting 3975 from 4350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3750, and continue the process.

Step 16:
The number 795 fits into 3750 4 times, leaving a remainder of 570.
Put 4 as the next digit of the answer. 
Result so far: 39394.31320754
The remainder is 570 after subtracting 3180 from 3750.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5700, and continue the process.

Our division results in 39394.31320754 with a remaining 5.7e-07.