We're dividing 501317 by 12 
Our goal is to divide 501317 by 12.

On to step 1:
5 divided by 12 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 12

Step 2:
The number 12 fits into 50 4 times, leaving a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we take 48 away from 50, we end up with 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 12

Step 3:
If we divide 21 by 12, we get 1 and a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 41.0
Subtracting 12 from 21 leaves us with 9.
Include the next digit (3) from the dividend after 9, then repeat: 93 / 12

Let's proceed to step 4:
The number 12 fits into 93 7 times, leaving a remainder of 9.
Put 7 as the next digit of the answer. 
Result so far: 417.0
Subtracting 84 from 93 leaves us with 9.
Append the next digit (1) from the dividend to 9 and continue with: 91 / 12

Going ahead to step 5:
12 goes into 91 7 times with a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 4177.0
Subtract 84 from 91 to get 7.
Bring next digit (7) of the dividend behind the 7 and repeat the process: 77 / 12

Let's proceed to step 6:
When dividing 77 by 12, we get 6 with a remainder of 5.
The next digit of our result is 6. 
Result so far: 41776.0
If we subtract 72 from 77, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 7:
50 divided by 12 is 4 with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 41776.4
Subtracting 48 from 50 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 8:
When dividing 20 by 12, we get 1 with a remainder of 8.
The number 1 becomes the next digit in our result. 
Result so far: 41776.41
Deduct 12 from 20 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 9:
The number 12 fits into 80 6 times, leaving a remainder of 8.
The next digit of our result is 6. 
Result so far: 41776.416
Subtracting 72 from 80 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
When dividing 80 by 12, we get 6 with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 41776.4166
If we subtract 72 from 80, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 41776.4166 with a remainder of 8e-05.