We're dividing 40770663 by 335 
We want to divide 40770663 by 335.

Step 1:
335 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 335

Let's proceed to step 2:
335 goes into 40 0 times with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 335

Advancing to step 3:
The number 335 fits into 407 1 times, leaving a remainder of 72.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 335 from 407 to get 72.
Include the next digit (7) from the dividend after 72, then repeat: 727 / 335

Advancing to step 4:
727 divided by 335 is 2 with a remainder of 57.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Subtract 670 from 727 to get 57.
Fetch the next digit (0) from the dividend, attach it to 57 and continue: 570 / 335

On to step 5:
If we divide 570 by 335, we get 1 and a remainder of 235.
The next digit of our result is 1. 
Result so far: 121.0
Subtract 335 from 570 to get 235.
Bring next digit (6) of the dividend behind the 235 and repeat the process: 2356 / 335

Let's proceed to step 6:
When dividing 2356 by 335, we get 7 with a remainder of 11.
Use 7 as the next digit of our solution. 
Result so far: 1217.0
If we take 2345 away from 2356, we end up with 11.
Take the next digit (6) from the dividend and append it to 11, then repeat: 116 / 335

Going ahead to step 7:
If we divide 116 by 335, we get 0 and a remainder of 116.
Write down 0 as next digit of the result. 
Result so far: 12170.0
Subtract 0 from 116 to get 116.
Grab the next digit (3) from the dividend, add it to 116, then carry on: 1163 / 335

Going ahead to step 8:
335 goes into 1163 3 times with a remainder of 158.
Record the quotient 3 as the next digit in the result. 
Result so far: 121703.0
The remainder is 158 after subtracting 1005 from 1163.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

Let's proceed to step 9:
335 goes into 1580 4 times with a remainder of 240.
The next digit of our result is 4. 
Result so far: 121703.4
If we take 1340 away from 1580, we end up with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Moving on to step 10:
2400 divided by 335 is 7 with a remainder of 55.
The next digit of our result is 7. 
Result so far: 121703.47
The remainder is 55 after subtracting 2345 from 2400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Let's proceed to step 11:
335 can be fit into 550 1 times, resulting in a remainder of 215.
Use 1 as the next digit of our solution. 
Result so far: 121703.471
Deduct 335 from 550 and we're left with 215.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2150, and continue the process.

On to step 12:
2150 divided by 335 is 6 with a remainder of 140.
Put 6 as the next digit of the answer. 
Result so far: 121703.4716
The remainder is 140 after subtracting 2010 from 2150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Moving on to step 13:
335 can be fit into 1400 4 times, resulting in a remainder of 60.
Record the quotient 4 as the next digit in the result. 
Result so far: 121703.47164
If we subtract 1340 from 1400, we get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Advancing to step 14:
600 divided by 335 is 1 with a remainder of 265.
Write down 1 as next digit of the result. 
Result so far: 121703.471641
Deduct 335 from 600 and we're left with 265.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2650, and continue the process.

Let's proceed to step 15:
335 goes into 2650 7 times with a remainder of 305.
Use 7 as the next digit of our solution. 
Result so far: 121703.4716417
If we take 2345 away from 2650, we end up with 305.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3050, and continue the process.

Advancing to step 16:
When dividing 3050 by 335, we get 9 with a remainder of 35.
Put 9 as the next digit of the answer. 
Result so far: 121703.47164179
Subtract 3015 from 3050 to get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The quotient of the division is 121703.47164179, and the remainder is 3.5e-08.