We divide 334596 by 40
Let's see how many times 40 fits into 334596.

Let's proceed to step 1:
When dividing 3 by 40, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (3) from the dividend, attach it to 3 and continue: 33 / 40

Let's proceed to step 2:
If we divide 33 by 40, we get 0 and a remainder of 33.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 33, we get 33.
Fetch the next digit (4) from the dividend, attach it to 33 and continue: 334 / 40

On to step 3:
40 goes into 334 8 times with a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Deduct 320 from 334 and we're left with 14.
Append the next digit (5) from the dividend to 14 and continue with: 145 / 40

Going ahead to step 4:
40 can be fit into 145 3 times, resulting in a remainder of 25.
Record the quotient 3 as the next digit in the result. 
Result so far: 83.0
The remainder is 25 after subtracting 120 from 145.
Take the next digit (9) from the dividend and append it to 25, then repeat: 259 / 40

Moving on to step 5:
When dividing 259 by 40, we get 6 with a remainder of 19.
The next digit of our result is 6. 
Result so far: 836.0
If we take 240 away from 259, we end up with 19.
Fetch the next digit (6) from the dividend, attach it to 19 and continue: 196 / 40

Moving on to step 6:
40 goes into 196 4 times with a remainder of 36.
The number 4 becomes the next digit in our result. 
Result so far: 8364.0
Deduct 160 from 196 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 7:
When dividing 360 by 40, we get 9 with a remainder of 0.
The next digit of our result is 9. 
Result so far: 8364.9
The remainder is 0 after subtracting 360 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 8:
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: 8364.9
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 9:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 8364.9
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 final result is 8364.9 with a remainder of 0.0.