We're dividing 670795 by 18 
The aim is to understand the frequency of 18 in 670795.

On to step 1:
6 divided by 18 is 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 18

Step 2:
18 can be fit into 67 3 times, resulting in a remainder of 13.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 54 from 67 and we're left with 13.
Include the next digit (0) from the dividend after 13, then repeat: 130 / 18

Advancing to step 3:
If we divide 130 by 18, we get 7 and a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 37.0
If we take 126 away from 130, we end up with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 18

Advancing to step 4:
18 can be fit into 47 2 times, resulting in a remainder of 11.
Write down 2 as next digit of the result. 
Result so far: 372.0
If we take 36 away from 47, we end up with 11.
Bring next digit (9) of the dividend behind the 11 and repeat the process: 119 / 18

Advancing to step 5:
If we divide 119 by 18, we get 6 and a remainder of 11.
The number 6 becomes the next digit in our result. 
Result so far: 3726.0
Subtracting 108 from 119 leaves us with 11.
Take the next digit (5) from the dividend and append it to 11, then repeat: 115 / 18

Going ahead to step 6:
18 goes into 115 6 times with a remainder of 7.
Use 6 as the next digit of our solution. 
Result so far: 37266.0
Subtracting 108 from 115 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 7:
The number 18 fits into 70 3 times, leaving a remainder of 16.
The next digit of our result is 3. 
Result so far: 37266.3
Subtract 54 from 70 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 8:
18 goes into 160 8 times with a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 37266.38
Subtracting 144 from 160 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 9:
18 can be fit into 160 8 times, resulting in a remainder of 16.
The next digit of our result is 8. 
Result so far: 37266.388
Subtracting 144 from 160 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

The final result is 37266.388 with a remainder of 0.0016.