Let's divide 31234770 by 587
We want to divide 31234770 by 587.

Going ahead to step 1:
If we divide 3 by 587, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 587

Let's proceed to step 2:
31 divided by 587 is 0 with a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Include the next digit (2) from the dividend after 31, then repeat: 312 / 587

Going ahead to step 3:
The number 587 fits into 312 0 times, leaving a remainder of 312.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 312, we get 312.
Include the next digit (3) from the dividend after 312, then repeat: 3123 / 587

On to step 4:
If we divide 3123 by 587, we get 5 and a remainder of 188.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we subtract 2935 from 3123, we get 188.
Grab the next digit (4) from the dividend, add it to 188, then carry on: 1884 / 587

Step 5:
If we divide 1884 by 587, we get 3 and a remainder of 123.
Write down 3 as next digit of the result. 
Result so far: 53.0
Deduct 1761 from 1884 and we're left with 123.
Bring next digit (7) of the dividend behind the 123 and repeat the process: 1237 / 587

Step 6:
1237 divided by 587 is 2 with a remainder of 63.
Use 2 as the next digit of our solution. 
Result so far: 532.0
Subtract 1174 from 1237 to get 63.
Bring next digit (7) of the dividend behind the 63 and repeat the process: 637 / 587

Advancing to step 7:
When dividing 637 by 587, we get 1 with a remainder of 50.
Use 1 as the next digit of our solution. 
Result so far: 5321.0
If we subtract 587 from 637, we get 50.
Fetch the next digit (0) from the dividend, attach it to 50 and continue: 500 / 587

Advancing to step 8:
When dividing 500 by 587, we get 0 with a remainder of 500.
The number 0 becomes the next digit in our result. 
Result so far: 53210.0
Deduct 0 from 500 and we're left with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Moving on to step 9:
The number 587 fits into 5000 8 times, leaving a remainder of 304.
Use 8 as the next digit of our solution. 
Result so far: 53210.8
Deduct 4696 from 5000 and we're left with 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Advancing to step 10:
When dividing 3040 by 587, we get 5 with a remainder of 105.
Put 5 as the next digit of the answer. 
Result so far: 53210.85
The remainder is 105 after subtracting 2935 from 3040.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1050, and continue the process.

Going ahead to step 11:
When dividing 1050 by 587, we get 1 with a remainder of 463.
Write down 1 as next digit of the result. 
Result so far: 53210.851
Subtracting 587 from 1050 leaves us with 463.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4630, and continue the process.

Advancing to step 12:
If we divide 4630 by 587, we get 7 and a remainder of 521.
Use 7 as the next digit of our solution. 
Result so far: 53210.8517
If we take 4109 away from 4630, we end up with 521.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5210, and continue the process.

Going ahead to step 13:
5210 divided by 587 is 8 with a remainder of 514.
Put 8 as the next digit of the answer. 
Result so far: 53210.85178
The remainder is 514 after subtracting 4696 from 5210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5140, and continue the process.

Moving on to step 14:
The number 587 fits into 5140 8 times, leaving a remainder of 444.
Record the quotient 8 as the next digit in the result. 
Result so far: 53210.851788
Deduct 4696 from 5140 and we're left with 444.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4440, and continue the process.

After the division, we end up with 53210.851788 and a remainder of 4.44e-05.