Let's divide 40040118 by 2
We want to figure out the number of times 40040118 can be divided by 2.

On to step 1:
When dividing 4 by 2, we get 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 4 from 4, we get 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 2

Advancing to step 2:
0 divided by 2 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
Subtract 0 from 0 to get 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 2

Advancing to step 3:
The number 2 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 200.0
Deduct 0 from 0 and we're left with 0.
Append the next digit (4) from the dividend to 0 and continue with: 4 / 2

Advancing to step 4:
The number 2 fits into 4 2 times, leaving a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 2002.0
If we subtract 4 from 4, we get 0.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 2

On to step 5:
The number 2 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 20020.0
The remainder is 0 after subtracting 0 from 0.
Grab the next digit (1) from the dividend, add it to 0, then carry on: 1 / 2

Advancing to step 6:
2 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 200200.0
If we take 0 away from 1, we end up with 1.
Grab the next digit (1) from the dividend, add it to 1, then carry on: 11 / 2

Let's proceed to step 7:
If we divide 11 by 2, we get 5 and a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 2002005.0
If we subtract 10 from 11, we get 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 2

On to step 8:
18 divided by 2 is 9 with a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 20020059.0
Deduct 18 from 18 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.

On to step 9:
0 divided by 2 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 20020059.0
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.

On to step 10:
2 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 20020059.0
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 20020059.0, and the remainder is 0.0.