We divide 666800 by 40
Our goal is to divide 666800 by 40.

Advancing to step 1:
The number 40 fits into 6 0 times, leaving 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.
Take the next digit (6) from the dividend and append it to 6, then repeat: 66 / 40

Step 2:
The number 40 fits into 66 1 times, leaving a remainder of 26.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 40 away from 66, we end up with 26.
Bring next digit (6) of the dividend behind the 26 and repeat the process: 266 / 40

Step 3:
If we divide 266 by 40, we get 6 and a remainder of 26.
Write down 6 as next digit of the result. 
Result so far: 16.0
If we subtract 240 from 266, we get 26.
Grab the next digit (8) from the dividend, add it to 26, then carry on: 268 / 40

Step 4:
40 goes into 268 6 times with a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 166.0
Deduct 240 from 268 and we're left with 28.
Bring next digit (0) of the dividend behind the 28 and repeat the process: 280 / 40

Advancing to step 5:
40 can be fit into 280 7 times, resulting in a remainder of 0.
Record the quotient 7 as the next digit in the result. 
Result so far: 1667.0
If we take 280 away from 280, we end up with 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 40

Going ahead to step 6:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16670.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 7:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16670.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 16670.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.

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