We're dividing 31497071 by 638 
Let's see how many times 638 fits into 31497071.

Moving on to step 1:
3 divided by 638 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 638

Moving on to step 2:
The number 638 fits into 31 0 times, leaving a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Include the next digit (4) from the dividend after 31, then repeat: 314 / 638

Let's proceed to step 3:
When dividing 314 by 638, we get 0 with a remainder of 314.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 314, we end up with 314.
Append the next digit (9) from the dividend to 314 and continue with: 3149 / 638

Advancing to step 4:
3149 divided by 638 is 4 with a remainder of 597.
The next digit of our result is 4. 
Result so far: 4.0
Subtracting 2552 from 3149 leaves us with 597.
Fetch the next digit (7) from the dividend, attach it to 597 and continue: 5977 / 638

Moving on to step 5:
The number 638 fits into 5977 9 times, leaving a remainder of 235.
Write down 9 as next digit of the result. 
Result so far: 49.0
Subtracting 5742 from 5977 leaves us with 235.
Grab the next digit (0) from the dividend, add it to 235, then carry on: 2350 / 638

Step 6:
When dividing 2350 by 638, we get 3 with a remainder of 436.
The number 3 becomes the next digit in our result. 
Result so far: 493.0
Subtract 1914 from 2350 to get 436.
Take the next digit (7) from the dividend and append it to 436, then repeat: 4367 / 638

Step 7:
The number 638 fits into 4367 6 times, leaving a remainder of 539.
Use 6 as the next digit of our solution. 
Result so far: 4936.0
If we subtract 3828 from 4367, we get 539.
Include the next digit (1) from the dividend after 539, then repeat: 5391 / 638

Going ahead to step 8:
5391 divided by 638 is 8 with a remainder of 287.
The next digit of our result is 8. 
Result so far: 49368.0
Deduct 5104 from 5391 and we're left with 287.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2870, and continue the process.

Let's proceed to step 9:
The number 638 fits into 2870 4 times, leaving a remainder of 318.
Write down 4 as next digit of the result. 
Result so far: 49368.4
Subtracting 2552 from 2870 leaves us with 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Advancing to step 10:
If we divide 3180 by 638, we get 4 and a remainder of 628.
Record the quotient 4 as the next digit in the result. 
Result so far: 49368.44
If we take 2552 away from 3180, we end up with 628.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6280, and continue the process.

The final result is 49368.44 with a remainder of 0.628.