We're dividing 4076498 by 781 
Our goal is to divide 4076498 by 781.

Let's proceed to step 1:
The number 781 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 781

Advancing to step 2:
If we divide 40 by 781, we get 0 and a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 781

Moving on to step 3:
781 goes into 407 0 times with a remainder of 407.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 407, we get 407.
Include the next digit (6) from the dividend after 407, then repeat: 4076 / 781

Step 4:
781 goes into 4076 5 times with a remainder of 171.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtracting 3905 from 4076 leaves us with 171.
Take the next digit (4) from the dividend and append it to 171, then repeat: 1714 / 781

Advancing to step 5:
781 goes into 1714 2 times with a remainder of 152.
Put 2 as the next digit of the answer. 
Result so far: 52.0
The remainder is 152 after subtracting 1562 from 1714.
Include the next digit (9) from the dividend after 152, then repeat: 1529 / 781

Going ahead to step 6:
The number 781 fits into 1529 1 times, leaving a remainder of 748.
Use 1 as the next digit of our solution. 
Result so far: 521.0
If we take 781 away from 1529, we end up with 748.
Include the next digit (8) from the dividend after 748, then repeat: 7488 / 781

Advancing to step 7:
781 can be fit into 7488 9 times, resulting in a remainder of 459.
Use 9 as the next digit of our solution. 
Result so far: 5219.0
Subtracting 7029 from 7488 leaves us with 459.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4590, and continue the process.

Advancing to step 8:
If we divide 4590 by 781, we get 5 and a remainder of 685.
Record the quotient 5 as the next digit in the result. 
Result so far: 5219.5
If we take 3905 away from 4590, we end up with 685.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6850, and continue the process.

Step 9:
The number 781 fits into 6850 8 times, leaving a remainder of 602.
Write down 8 as next digit of the result. 
Result so far: 5219.58
Deduct 6248 from 6850 and we're left with 602.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6020, and continue the process.

Advancing to step 10:
6020 divided by 781 is 7 with a remainder of 553.
The next digit of our result is 7. 
Result so far: 5219.587
The remainder is 553 after subtracting 5467 from 6020.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5530, and continue the process.

Advancing to step 11:
781 goes into 5530 7 times with a remainder of 63.
Put 7 as the next digit of the answer. 
Result so far: 5219.5877
If we take 5467 away from 5530, we end up with 63.
Since there are no more digits in the dividend, we add a zero to the remainder making it 630, and continue the process.

The final result is 5219.5877 with a remainder of 0.00063.