We're dividing 40790 by 10 
Let's see how many times 10 fits into 40790.

Going ahead to step 1:
4 divided by 10 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 10

Let's proceed to step 2:
10 can be fit into 40 4 times, resulting in a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 40 from 40 leaves us with 0.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 10

Moving on to step 3:
10 can be fit into 7 0 times, resulting in a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 40.0
Deduct 0 from 7 and we're left with 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 10

Going ahead to step 4:
79 divided by 10 is 7 with a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 407.0
The remainder is 9 after subtracting 70 from 79.
Append the next digit (0) from the dividend to 9 and continue with: 90 / 10

Going ahead to step 5:
The number 10 fits into 90 9 times, leaving a remainder of 0.
The number 9 becomes the next digit in our result. 
Result so far: 4079.0
If we subtract 90 from 90, 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.

Moving on to step 6:
If we divide 0 by 10, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 4079.0
If we take 0 away from 0, we end up 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.

Advancing to step 7:
If we divide 0 by 10, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 4079.0
The remainder is 0 after subtracting 0 from 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 outcome is 4079.0, with a leftover of 0.0.