940845 divided by 18 
We're looking to find how many times 18 goes into 940845.

Step 1:
18 can be fit into 9 0 times, resulting in a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Append the next digit (4) from the dividend to 9 and continue with: 94 / 18

Moving on to step 2:
The number 18 fits into 94 5 times, leaving a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Subtracting 90 from 94 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 18

Step 3:
18 can be fit into 40 2 times, resulting in a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 52.0
Deduct 36 from 40 and we're left with 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 18

Going ahead to step 4:
18 goes into 48 2 times with a remainder of 12.
The next digit of our result is 2. 
Result so far: 522.0
Subtract 36 from 48 to get 12.
Grab the next digit (4) from the dividend, add it to 12, then carry on: 124 / 18

Moving on to step 5:
18 can be fit into 124 6 times, resulting in a remainder of 16.
The number 6 becomes the next digit in our result. 
Result so far: 5226.0
The remainder is 16 after subtracting 108 from 124.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 18

On to step 6:
The number 18 fits into 165 9 times, leaving a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 52269.0
Deduct 162 from 165 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
30 divided by 18 is 1 with a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 52269.1
If we subtract 18 from 30, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 8:
18 goes into 120 6 times with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 52269.16
Subtract 108 from 120 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 9:
120 divided by 18 is 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 52269.166
Subtracting 108 from 120 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The quotient of the division is 52269.166, and the remainder is 0.0012.