Let's divide 40031476 by 849
Our goal is to divide 40031476 by 849.

Step 1:
849 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.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 849

Step 2:
849 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Include the next digit (0) from the dividend after 40, then repeat: 400 / 849

Step 3:
The number 849 fits into 400 0 times, leaving a remainder of 400.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 400, we end up with 400.
Fetch the next digit (3) from the dividend, attach it to 400 and continue: 4003 / 849

Advancing to step 4:
849 can be fit into 4003 4 times, resulting in a remainder of 607.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
Subtract 3396 from 4003 to get 607.
Grab the next digit (1) from the dividend, add it to 607, then carry on: 6071 / 849

Step 5:
849 goes into 6071 7 times with a remainder of 128.
Use 7 as the next digit of our solution. 
Result so far: 47.0
Subtract 5943 from 6071 to get 128.
Include the next digit (4) from the dividend after 128, then repeat: 1284 / 849

Step 6:
The number 849 fits into 1284 1 times, leaving a remainder of 435.
Record the quotient 1 as the next digit in the result. 
Result so far: 471.0
If we take 849 away from 1284, we end up with 435.
Grab the next digit (7) from the dividend, add it to 435, then carry on: 4357 / 849

Step 7:
The number 849 fits into 4357 5 times, leaving a remainder of 112.
The number 5 becomes the next digit in our result. 
Result so far: 4715.0
If we take 4245 away from 4357, we end up with 112.
Fetch the next digit (6) from the dividend, attach it to 112 and continue: 1126 / 849

Advancing to step 8:
The number 849 fits into 1126 1 times, leaving a remainder of 277.
The next digit of our result is 1. 
Result so far: 47151.0
Subtract 849 from 1126 to get 277.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2770, and continue the process.

On to step 9:
2770 divided by 849 is 3 with a remainder of 223.
Put 3 as the next digit of the answer. 
Result so far: 47151.3
The remainder is 223 after subtracting 2547 from 2770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2230, and continue the process.

Moving on to step 10:
849 goes into 2230 2 times with a remainder of 532.
Use 2 as the next digit of our solution. 
Result so far: 47151.32
Subtracting 1698 from 2230 leaves us with 532.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5320, and continue the process.

Let's proceed to step 11:
The number 849 fits into 5320 6 times, leaving a remainder of 226.
Write down 6 as next digit of the result. 
Result so far: 47151.326
If we take 5094 away from 5320, we end up with 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2260, and continue the process.

Moving on to step 12:
2260 divided by 849 is 2 with a remainder of 562.
Record the quotient 2 as the next digit in the result. 
Result so far: 47151.3262
Subtracting 1698 from 2260 leaves us with 562.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5620, and continue the process.

Advancing to step 13:
When dividing 5620 by 849, we get 6 with a remainder of 526.
Put 6 as the next digit of the answer. 
Result so far: 47151.32626
If we take 5094 away from 5620, we end up with 526.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5260, and continue the process.

Advancing to step 14:
849 can be fit into 5260 6 times, resulting in a remainder of 166.
The next digit of our result is 6. 
Result so far: 47151.326266
Subtract 5094 from 5260 to get 166.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

The final outcome is 47151.326266, with a leftover of 1.66e-05.