We divide 40346155 by 665
Our goal is to divide 40346155 by 665.

Going ahead to step 1:
4 divided by 665 is 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 665

Step 2:
When dividing 40 by 665, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Bring next digit (3) of the dividend behind the 40 and repeat the process: 403 / 665

Step 3:
The number 665 fits into 403 0 times, leaving a remainder of 403.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 403 and we're left with 403.
Grab the next digit (4) from the dividend, add it to 403, then carry on: 4034 / 665

Moving on to step 4:
When dividing 4034 by 665, we get 6 with a remainder of 44.
Use 6 as the next digit of our solution. 
Result so far: 6.0
Subtracting 3990 from 4034 leaves us with 44.
Take the next digit (6) from the dividend and append it to 44, then repeat: 446 / 665

Going ahead to step 5:
The number 665 fits into 446 0 times, leaving a remainder of 446.
The next digit of our result is 0. 
Result so far: 60.0
Subtract 0 from 446 to get 446.
Fetch the next digit (1) from the dividend, attach it to 446 and continue: 4461 / 665

Let's proceed to step 6:
The number 665 fits into 4461 6 times, leaving a remainder of 471.
The next digit of our result is 6. 
Result so far: 606.0
Subtracting 3990 from 4461 leaves us with 471.
Bring next digit (5) of the dividend behind the 471 and repeat the process: 4715 / 665

Advancing to step 7:
When dividing 4715 by 665, we get 7 with a remainder of 60.
Record the quotient 7 as the next digit in the result. 
Result so far: 6067.0
The remainder is 60 after subtracting 4655 from 4715.
Grab the next digit (5) from the dividend, add it to 60, then carry on: 605 / 665

On to step 8:
605 divided by 665 is 0 with a remainder of 605.
Write down 0 as next digit of the result. 
Result so far: 60670.0
Subtract 0 from 605 to get 605.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6050, and continue the process.

Step 9:
665 can be fit into 6050 9 times, resulting in a remainder of 65.
Write down 9 as next digit of the result. 
Result so far: 60670.9
If we subtract 5985 from 6050, we get 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Step 10:
If we divide 650 by 665, we get 0 and a remainder of 650.
The next digit of our result is 0. 
Result so far: 60670.9
Subtracting 0 from 650 leaves us with 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6500, and continue the process.

Going ahead to step 11:
When dividing 6500 by 665, we get 9 with a remainder of 515.
Put 9 as the next digit of the answer. 
Result so far: 60670.909
The remainder is 515 after subtracting 5985 from 6500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5150, and continue the process.

On to step 12:
665 can be fit into 5150 7 times, resulting in a remainder of 495.
The next digit of our result is 7. 
Result so far: 60670.9097
If we subtract 4655 from 5150, we get 495.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4950, and continue the process.

Step 13:
The number 665 fits into 4950 7 times, leaving a remainder of 295.
Record the quotient 7 as the next digit in the result. 
Result so far: 60670.90977
Subtract 4655 from 4950 to get 295.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2950, and continue the process.

After the division, we end up with 60670.90977 and a remainder of 0.000295.