We divide 12794877 by 398
Our goal is to divide 12794877 by 398.

Let's proceed to step 1:
If we divide 1 by 398, we get 0 and a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 398

Going ahead to step 2:
When dividing 12 by 398, we get 0 with a remainder of 12.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 12 after subtracting 0 from 12.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 398

Let's proceed to step 3:
If we divide 127 by 398, we get 0 and a remainder of 127.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 127 to get 127.
Append the next digit (9) from the dividend to 127 and continue with: 1279 / 398

Let's proceed to step 4:
398 can be fit into 1279 3 times, resulting in a remainder of 85.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtract 1194 from 1279 to get 85.
Take the next digit (4) from the dividend and append it to 85, then repeat: 854 / 398

Step 5:
398 can be fit into 854 2 times, resulting in a remainder of 58.
Record the quotient 2 as the next digit in the result. 
Result so far: 32.0
Subtracting 796 from 854 leaves us with 58.
Append the next digit (8) from the dividend to 58 and continue with: 588 / 398

Let's proceed to step 6:
588 divided by 398 is 1 with a remainder of 190.
The next digit of our result is 1. 
Result so far: 321.0
Subtracting 398 from 588 leaves us with 190.
Bring next digit (7) of the dividend behind the 190 and repeat the process: 1907 / 398

Step 7:
When dividing 1907 by 398, we get 4 with a remainder of 315.
Use 4 as the next digit of our solution. 
Result so far: 3214.0
Subtract 1592 from 1907 to get 315.
Fetch the next digit (7) from the dividend, attach it to 315 and continue: 3157 / 398

Going ahead to step 8:
398 can be fit into 3157 7 times, resulting in a remainder of 371.
Write down 7 as next digit of the result. 
Result so far: 32147.0
Subtracting 2786 from 3157 leaves us with 371.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3710, and continue the process.

Advancing to step 9:
398 goes into 3710 9 times with a remainder of 128.
Use 9 as the next digit of our solution. 
Result so far: 32147.9
Subtracting 3582 from 3710 leaves us with 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Advancing to step 10:
The number 398 fits into 1280 3 times, leaving a remainder of 86.
The next digit of our result is 3. 
Result so far: 32147.93
If we take 1194 away from 1280, we end up with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Advancing to step 11:
398 goes into 860 2 times with a remainder of 64.
Put 2 as the next digit of the answer. 
Result so far: 32147.932
The remainder is 64 after subtracting 796 from 860.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

On to step 12:
640 divided by 398 is 1 with a remainder of 242.
Write down 1 as next digit of the result. 
Result so far: 32147.9321
If we take 398 away from 640, we end up with 242.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2420, and continue the process.

Going ahead to step 13:
The number 398 fits into 2420 6 times, leaving a remainder of 32.
Put 6 as the next digit of the answer. 
Result so far: 32147.93216
If we take 2388 away from 2420, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 14:
398 can be fit into 320 0 times, resulting in a remainder of 320.
Put 0 as the next digit of the answer. 
Result so far: 32147.93216
Subtracting 0 from 320 leaves us with 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Step 15:
The number 398 fits into 3200 8 times, leaving a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 32147.9321608
The remainder is 16 after subtracting 3184 from 3200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 16:
The number 398 fits into 160 0 times, leaving a remainder of 160.
Use 0 as the next digit of our solution. 
Result so far: 32147.9321608
Subtracting 0 from 160 leaves us with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

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