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

Moving on to step 1:
If we divide 1 by 504, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 504

On to step 2:
When dividing 12 by 504, we get 0 with a remainder of 12.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 12, we get 12.
Bring next digit (2) of the dividend behind the 12 and repeat the process: 122 / 504

On to step 3:
If we divide 122 by 504, we get 0 and a remainder of 122.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 122 to get 122.
Fetch the next digit (4) from the dividend, attach it to 122 and continue: 1224 / 504

Step 4:
If we divide 1224 by 504, we get 2 and a remainder of 216.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 1008 from 1224 and we're left with 216.
Grab the next digit (0) from the dividend, add it to 216, then carry on: 2160 / 504

Step 5:
2160 divided by 504 is 4 with a remainder of 144.
Put 4 as the next digit of the answer. 
Result so far: 24.0
If we subtract 2016 from 2160, we get 144.
Include the next digit (4) from the dividend after 144, then repeat: 1444 / 504

Advancing to step 6:
The number 504 fits into 1444 2 times, leaving a remainder of 436.
Use 2 as the next digit of our solution. 
Result so far: 242.0
Subtracting 1008 from 1444 leaves us with 436.
Include the next digit (7) from the dividend after 436, then repeat: 4367 / 504

Step 7:
If we divide 4367 by 504, we get 8 and a remainder of 335.
Use 8 as the next digit of our solution. 
Result so far: 2428.0
Deduct 4032 from 4367 and we're left with 335.
Fetch the next digit (1) from the dividend, attach it to 335 and continue: 3351 / 504

Let's proceed to step 8:
3351 divided by 504 is 6 with a remainder of 327.
The number 6 becomes the next digit in our result. 
Result so far: 24286.0
Subtracting 3024 from 3351 leaves us with 327.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3270, and continue the process.

Step 9:
When dividing 3270 by 504, we get 6 with a remainder of 246.
Use 6 as the next digit of our solution. 
Result so far: 24286.6
Subtracting 3024 from 3270 leaves us with 246.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2460, and continue the process.

Moving on to step 10:
The number 504 fits into 2460 4 times, leaving a remainder of 444.
Record the quotient 4 as the next digit in the result. 
Result so far: 24286.64
Deduct 2016 from 2460 and we're left with 444.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4440, and continue the process.

Step 11:
The number 504 fits into 4440 8 times, leaving a remainder of 408.
Put 8 as the next digit of the answer. 
Result so far: 24286.648
The remainder is 408 after subtracting 4032 from 4440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4080, and continue the process.

Going ahead to step 12:
When dividing 4080 by 504, we get 8 with a remainder of 48.
The next digit of our result is 8. 
Result so far: 24286.6488
If we subtract 4032 from 4080, we get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Our division results in 24286.6488 with a remaining 0.00048.