40370058 divided by 687 
We want to divide 40370058 by 687.

On to step 1:
687 goes into 4 0 times with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 687

Going ahead to step 2:
When dividing 40 by 687, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Bring next digit (3) of the dividend behind the 40 and repeat the process: 403 / 687

Moving on to step 3:
If we divide 403 by 687, we get 0 and a remainder of 403.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 403 and we're left with 403.
Bring next digit (7) of the dividend behind the 403 and repeat the process: 4037 / 687

Let's proceed to step 4:
The number 687 fits into 4037 5 times, leaving a remainder of 602.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Deduct 3435 from 4037 and we're left with 602.
Take the next digit (0) from the dividend and append it to 602, then repeat: 6020 / 687

On to step 5:
When dividing 6020 by 687, we get 8 with a remainder of 524.
The next digit of our result is 8. 
Result so far: 58.0
Deduct 5496 from 6020 and we're left with 524.
Fetch the next digit (0) from the dividend, attach it to 524 and continue: 5240 / 687

Step 6:
5240 divided by 687 is 7 with a remainder of 431.
Record the quotient 7 as the next digit in the result. 
Result so far: 587.0
Deduct 4809 from 5240 and we're left with 431.
Fetch the next digit (5) from the dividend, attach it to 431 and continue: 4315 / 687

Advancing to step 7:
4315 divided by 687 is 6 with a remainder of 193.
Put 6 as the next digit of the answer. 
Result so far: 5876.0
If we subtract 4122 from 4315, we get 193.
Include the next digit (8) from the dividend after 193, then repeat: 1938 / 687

Going ahead to step 8:
When dividing 1938 by 687, we get 2 with a remainder of 564.
Use 2 as the next digit of our solution. 
Result so far: 58762.0
Deduct 1374 from 1938 and we're left with 564.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5640, and continue the process.

Let's proceed to step 9:
687 can be fit into 5640 8 times, resulting in a remainder of 144.
The number 8 becomes the next digit in our result. 
Result so far: 58762.8
If we subtract 5496 from 5640, we get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Let's proceed to step 10:
If we divide 1440 by 687, we get 2 and a remainder of 66.
The number 2 becomes the next digit in our result. 
Result so far: 58762.82
The remainder is 66 after subtracting 1374 from 1440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

On to step 11:
When dividing 660 by 687, we get 0 with a remainder of 660.
The next digit of our result is 0. 
Result so far: 58762.82
If we subtract 0 from 660, we get 660.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6600, and continue the process.

Moving on to step 12:
6600 divided by 687 is 9 with a remainder of 417.
Write down 9 as next digit of the result. 
Result so far: 58762.8209
If we take 6183 away from 6600, we end up with 417.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4170, and continue the process.

Advancing to step 13:
687 goes into 4170 6 times with a remainder of 48.
The next digit of our result is 6. 
Result so far: 58762.82096
Deduct 4122 from 4170 and we're left with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 14:
480 divided by 687 is 0 with a remainder of 480.
Put 0 as the next digit of the answer. 
Result so far: 58762.82096
If we take 0 away from 480, we end up with 480.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4800, and continue the process.

On to step 15:
687 can be fit into 4800 6 times, resulting in a remainder of 678.
Record the quotient 6 as the next digit in the result. 
Result so far: 58762.8209606
The remainder is 678 after subtracting 4122 from 4800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6780, and continue the process.

Let's proceed to step 16:
When dividing 6780 by 687, we get 9 with a remainder of 597.
The number 9 becomes the next digit in our result. 
Result so far: 58762.82096069
Subtract 6183 from 6780 to get 597.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5970, and continue the process.

The final outcome is 58762.82096069, with a leftover of 5.97e-07.