We're dividing 312566 by 45 
Our goal is to divide 312566 by 45.

Advancing to step 1:
45 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 45

Advancing to step 2:
The number 45 fits into 31 0 times, leaving 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.
Append the next digit (2) from the dividend to 31 and continue with: 312 / 45

Advancing to step 3:
312 divided by 45 is 6 with a remainder of 42.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we subtract 270 from 312, we get 42.
Fetch the next digit (5) from the dividend, attach it to 42 and continue: 425 / 45

On to step 4:
45 can be fit into 425 9 times, resulting in a remainder of 20.
Put 9 as the next digit of the answer. 
Result so far: 69.0
Subtract 405 from 425 to get 20.
Include the next digit (6) from the dividend after 20, then repeat: 206 / 45

Going ahead to step 5:
45 can be fit into 206 4 times, resulting in a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 694.0
Deduct 180 from 206 and we're left with 26.
Take the next digit (6) from the dividend and append it to 26, then repeat: 266 / 45

On to step 6:
45 goes into 266 5 times with a remainder of 41.
The next digit of our result is 5. 
Result so far: 6945.0
Subtract 225 from 266 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Step 7:
The number 45 fits into 410 9 times, leaving a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 6945.9
Deduct 405 from 410 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 8:
The number 45 fits into 50 1 times, leaving a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 6945.91
If we subtract 45 from 50, 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.

Advancing to step 9:
50 divided by 45 is 1 with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 6945.911
Subtract 45 from 50 to 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.

The final outcome is 6945.911, with a leftover of 0.0005.