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

Step 1:
40 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Append the next digit (6) from the dividend to 2 and continue with: 26 / 40

Moving on to step 2:
26 divided by 40 is 0 with a remainder of 26.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 26, we end up with 26.
Fetch the next digit (4) from the dividend, attach it to 26 and continue: 264 / 40

Advancing to step 3:
When dividing 264 by 40, we get 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 6.0
The remainder is 24 after subtracting 240 from 264.
Include the next digit (0) from the dividend after 24, then repeat: 240 / 40

Step 4:
240 divided by 40 is 6 with a remainder of 0.
Write down 6 as next digit of the result. 
Result so far: 66.0
Subtracting 240 from 240 leaves us with 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 40

Moving on to step 5:
40 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 660.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 40

Going ahead to step 6:
40 goes into 58 1 times with a remainder of 18.
The next digit of our result is 1. 
Result so far: 6601.0
The remainder is 18 after subtracting 40 from 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
40 goes into 180 4 times with a remainder of 20.
The number 4 becomes the next digit in our result. 
Result so far: 6601.4
If we take 160 away from 180, we end up 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.

Going ahead 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: 6601.45
If we subtract 200 from 200, 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.

Step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 6601.45
Deduct 0 from 0 and we're left 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 10:
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: 6601.45
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.

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