Let's divide 5011298 by 395
We're looking to find how many times 395 goes into 5011298.

Moving on to step 1:
5 divided by 395 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 395

Advancing to step 2:
395 can be fit into 50 0 times, resulting in a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Bring next digit (1) of the dividend behind the 50 and repeat the process: 501 / 395

Step 3:
395 goes into 501 1 times with a remainder of 106.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 395 from 501 and we're left with 106.
Fetch the next digit (1) from the dividend, attach it to 106 and continue: 1061 / 395

Going ahead to step 4:
The number 395 fits into 1061 2 times, leaving a remainder of 271.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 790 from 1061, we get 271.
Include the next digit (2) from the dividend after 271, then repeat: 2712 / 395

Going ahead to step 5:
When dividing 2712 by 395, we get 6 with a remainder of 342.
Put 6 as the next digit of the answer. 
Result so far: 126.0
Subtracting 2370 from 2712 leaves us with 342.
Take the next digit (9) from the dividend and append it to 342, then repeat: 3429 / 395

Advancing to step 6:
3429 divided by 395 is 8 with a remainder of 269.
Write down 8 as next digit of the result. 
Result so far: 1268.0
If we take 3160 away from 3429, we end up with 269.
Fetch the next digit (8) from the dividend, attach it to 269 and continue: 2698 / 395

Going ahead to step 7:
When dividing 2698 by 395, we get 6 with a remainder of 328.
The next digit of our result is 6. 
Result so far: 12686.0
If we subtract 2370 from 2698, we get 328.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

On to step 8:
When dividing 3280 by 395, we get 8 with a remainder of 120.
Write down 8 as next digit of the result. 
Result so far: 12686.8
Deduct 3160 from 3280 and we're left with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

On to step 9:
395 goes into 1200 3 times with a remainder of 15.
Put 3 as the next digit of the answer. 
Result so far: 12686.83
If we take 1185 away from 1200, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 10:
395 goes into 150 0 times with a remainder of 150.
Use 0 as the next digit of our solution. 
Result so far: 12686.83
If we subtract 0 from 150, we get 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Going ahead to step 11:
395 goes into 1500 3 times with a remainder of 315.
Record the quotient 3 as the next digit in the result. 
Result so far: 12686.8303
If we subtract 1185 from 1500, we get 315.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3150, and continue the process.

Advancing to step 12:
When dividing 3150 by 395, we get 7 with a remainder of 385.
The next digit of our result is 7. 
Result so far: 12686.83037
Subtract 2765 from 3150 to get 385.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3850, and continue the process.

On to step 13:
The number 395 fits into 3850 9 times, leaving a remainder of 295.
The number 9 becomes the next digit in our result. 
Result so far: 12686.830379
The remainder is 295 after subtracting 3555 from 3850.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2950, and continue the process.

On to step 14:
If we divide 2950 by 395, we get 7 and a remainder of 185.
The next digit of our result is 7. 
Result so far: 12686.8303797
Subtracting 2765 from 2950 leaves us with 185.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

Going ahead to step 15:
1850 divided by 395 is 4 with a remainder of 270.
Write down 4 as next digit of the result. 
Result so far: 12686.83037974
If we subtract 1580 from 1850, we get 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

After the division, we end up with 12686.83037974 and a remainder of 2.7e-07.