642798 divided by 18 
We want to divide 642798 by 18.

Going ahead to step 1:
18 goes into 6 0 times with a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 18

Step 2:
18 goes into 64 3 times with a remainder of 10.
Use 3 as the next digit of our solution. 
Result so far: 3.0
The remainder is 10 after subtracting 54 from 64.
Include the next digit (2) from the dividend after 10, then repeat: 102 / 18

Let's proceed to step 3:
102 divided by 18 is 5 with a remainder of 12.
The number 5 becomes the next digit in our result. 
Result so far: 35.0
If we take 90 away from 102, we end up with 12.
Append the next digit (7) from the dividend to 12 and continue with: 127 / 18

On to step 4:
18 can be fit into 127 7 times, resulting in a remainder of 1.
The next digit of our result is 7. 
Result so far: 357.0
Subtract 126 from 127 to get 1.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 18

Advancing to step 5:
If we divide 19 by 18, we get 1 and a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 3571.0
If we subtract 18 from 19, we get 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 18

Step 6:
When dividing 18 by 18, we get 1 with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 35711.0
The remainder is 0 after subtracting 18 from 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 7:
The number 18 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 35711.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
The number 18 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 35711.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 35711.0, and the remainder is 0.0.