We're dividing 2504308 by 997 
We want to divide 2504308 by 997.

Moving on to step 1:
997 can be fit into 2 0 times, resulting in a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 997

Going ahead to step 2:
When dividing 25 by 997, we get 0 with a remainder of 25.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 25, we end up with 25.
Grab the next digit (0) from the dividend, add it to 25, then carry on: 250 / 997

Moving on to step 3:
When dividing 250 by 997, we get 0 with a remainder of 250.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 250, we get 250.
Grab the next digit (4) from the dividend, add it to 250, then carry on: 2504 / 997

Going ahead to step 4:
When dividing 2504 by 997, we get 2 with a remainder of 510.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 1994 away from 2504, we end up with 510.
Append the next digit (3) from the dividend to 510 and continue with: 5103 / 997

Step 5:
997 goes into 5103 5 times with a remainder of 118.
The next digit of our result is 5. 
Result so far: 25.0
Deduct 4985 from 5103 and we're left with 118.
Fetch the next digit (0) from the dividend, attach it to 118 and continue: 1180 / 997

Advancing to step 6:
When dividing 1180 by 997, we get 1 with a remainder of 183.
Use 1 as the next digit of our solution. 
Result so far: 251.0
If we take 997 away from 1180, we end up with 183.
Grab the next digit (8) from the dividend, add it to 183, then carry on: 1838 / 997

Moving on to step 7:
When dividing 1838 by 997, we get 1 with a remainder of 841.
Put 1 as the next digit of the answer. 
Result so far: 2511.0
Subtract 997 from 1838 to get 841.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8410, and continue the process.

Advancing to step 8:
When dividing 8410 by 997, we get 8 with a remainder of 434.
The number 8 becomes the next digit in our result. 
Result so far: 2511.8
Subtract 7976 from 8410 to get 434.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4340, and continue the process.

Step 9:
When dividing 4340 by 997, we get 4 with a remainder of 352.
Use 4 as the next digit of our solution. 
Result so far: 2511.84
Deduct 3988 from 4340 and we're left with 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

On to step 10:
997 goes into 3520 3 times with a remainder of 529.
Write down 3 as next digit of the result. 
Result so far: 2511.843
Subtracting 2991 from 3520 leaves us with 529.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5290, and continue the process.

Step 11:
When dividing 5290 by 997, we get 5 with a remainder of 305.
Record the quotient 5 as the next digit in the result. 
Result so far: 2511.8435
Deduct 4985 from 5290 and we're left with 305.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3050, and continue the process.

Advancing to step 12:
997 can be fit into 3050 3 times, resulting in a remainder of 59.
Put 3 as the next digit of the answer. 
Result so far: 2511.84353
The remainder is 59 after subtracting 2991 from 3050.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Moving on to step 13:
997 goes into 590 0 times with a remainder of 590.
Record the quotient 0 as the next digit in the result. 
Result so far: 2511.84353
The remainder is 590 after subtracting 0 from 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5900, and continue the process.

On to step 14:
5900 divided by 997 is 5 with a remainder of 915.
Write down 5 as next digit of the result. 
Result so far: 2511.8435305
If we subtract 4985 from 5900, we get 915.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9150, and continue the process.

Moving on to step 15:
The number 997 fits into 9150 9 times, leaving a remainder of 177.
Use 9 as the next digit of our solution. 
Result so far: 2511.84353059
The remainder is 177 after subtracting 8973 from 9150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1770, and continue the process.

The final outcome is 2511.84353059, with a leftover of 1.77e-07.