Let's divide 312991 by 99
We want to divide 312991 by 99.

Advancing to step 1:
99 goes into 3 0 times with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 99

Step 2:
If we divide 31 by 99, we get 0 and a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Take the next digit (2) from the dividend and append it to 31, then repeat: 312 / 99

Let's proceed to step 3:
99 goes into 312 3 times with a remainder of 15.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 297 from 312, we get 15.
Fetch the next digit (9) from the dividend, attach it to 15 and continue: 159 / 99

Step 4:
If we divide 159 by 99, we get 1 and a remainder of 60.
Put 1 as the next digit of the answer. 
Result so far: 31.0
If we take 99 away from 159, we end up with 60.
Grab the next digit (9) from the dividend, add it to 60, then carry on: 609 / 99

Let's proceed to step 5:
99 can be fit into 609 6 times, resulting in a remainder of 15.
Write down 6 as next digit of the result. 
Result so far: 316.0
The remainder is 15 after subtracting 594 from 609.
Include the next digit (1) from the dividend after 15, then repeat: 151 / 99

Let's proceed to step 6:
If we divide 151 by 99, we get 1 and a remainder of 52.
Write down 1 as next digit of the result. 
Result so far: 3161.0
If we take 99 away from 151, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Advancing to step 7:
520 divided by 99 is 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 3161.5
Deduct 495 from 520 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 8:
250 divided by 99 is 2 with a remainder of 52.
Use 2 as the next digit of our solution. 
Result so far: 3161.52
If we subtract 198 from 250, we get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 9:
520 divided by 99 is 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 3161.525
Subtract 495 from 520 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 10:
When dividing 250 by 99, we get 2 with a remainder of 52.
The next digit of our result is 2. 
Result so far: 3161.5252
Subtract 198 from 250 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Let's proceed to step 11:
The number 99 fits into 520 5 times, leaving a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 3161.52525
If we take 495 away from 520, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 12:
The number 99 fits into 250 2 times, leaving a remainder of 52.
Write down 2 as next digit of the result. 
Result so far: 3161.525252
If we take 198 away from 250, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Let's proceed to step 13:
When dividing 520 by 99, we get 5 with a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 3161.5252525
If we take 495 away from 520, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 14:
If we divide 250 by 99, we get 2 and a remainder of 52.
The next digit of our result is 2. 
Result so far: 3161.52525252
Deduct 198 from 250 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

The final outcome is 3161.52525252, with a leftover of 5.2e-08.