We're dividing 668398 by 40 
We want to divide 668398 by 40.

Going ahead to step 1:
40 goes into 6 0 times with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Take the next digit (6) from the dividend and append it to 6, then repeat: 66 / 40

Advancing to step 2:
If we divide 66 by 40, we get 1 and a remainder of 26.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 40 from 66 and we're left with 26.
Bring next digit (8) of the dividend behind the 26 and repeat the process: 268 / 40

Advancing to step 3:
40 goes into 268 6 times with a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
Subtract 240 from 268 to get 28.
Append the next digit (3) from the dividend to 28 and continue with: 283 / 40

Going ahead to step 4:
When dividing 283 by 40, we get 7 with a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 167.0
The remainder is 3 after subtracting 280 from 283.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 40

On to step 5:
39 divided by 40 is 0 with a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 1670.0
If we subtract 0 from 39, we get 39.
Take the next digit (8) from the dividend and append it to 39, then repeat: 398 / 40

Let's proceed to step 6:
If we divide 398 by 40, we get 9 and a remainder of 38.
The number 9 becomes the next digit in our result. 
Result so far: 16709.0
Deduct 360 from 398 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 7:
When dividing 380 by 40, we get 9 with a remainder of 20.
Record the quotient 9 as the next digit in the result. 
Result so far: 16709.9
Deduct 360 from 380 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 16709.95
Subtracting 200 from 200 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.

Going ahead to step 9:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 16709.95
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.

Advancing to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 16709.95
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 16709.95 with a remaining 0.0.