Let's divide 499180 by 40
We want to divide 499180 by 40.

Moving on to step 1:
If we divide 4 by 40, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (9) from the dividend, attach it to 4 and continue: 49 / 40

Going ahead to step 2:
When dividing 49 by 40, we get 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 40 from 49 to get 9.
Grab the next digit (9) from the dividend, add it to 9, then carry on: 99 / 40

Step 3:
If we divide 99 by 40, we get 2 and a remainder of 19.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we subtract 80 from 99, we get 19.
Fetch the next digit (1) from the dividend, attach it to 19 and continue: 191 / 40

Step 4:
When dividing 191 by 40, we get 4 with a remainder of 31.
The number 4 becomes the next digit in our result. 
Result so far: 124.0
If we subtract 160 from 191, we get 31.
Take the next digit (8) from the dividend and append it to 31, then repeat: 318 / 40

Moving on to step 5:
When dividing 318 by 40, we get 7 with a remainder of 38.
Use 7 as the next digit of our solution. 
Result so far: 1247.0
Subtracting 280 from 318 leaves us with 38.
Fetch the next digit (0) from the dividend, attach it to 38 and continue: 380 / 40

Going ahead to step 6:
When dividing 380 by 40, we get 9 with a remainder of 20.
The next digit of our result is 9. 
Result so far: 12479.0
Subtracting 360 from 380 leaves us 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.

Step 7:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 12479.5
Subtracting 200 from 200 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.

On to step 8:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 12479.5
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 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12479.5
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 final result is 12479.5 with a remainder of 0.0.