We're dividing 40724477 by 157 
We want to divide 40724477 by 157.

Advancing to step 1:
4 divided by 157 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 157

On to step 2:
When dividing 40 by 157, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (7) from the dividend, add it to 40, then carry on: 407 / 157

Let's proceed to step 3:
If we divide 407 by 157, we get 2 and a remainder of 93.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we subtract 314 from 407, we get 93.
Take the next digit (2) from the dividend and append it to 93, then repeat: 932 / 157

Moving on to step 4:
157 can be fit into 932 5 times, resulting in a remainder of 147.
Use 5 as the next digit of our solution. 
Result so far: 25.0
Subtracting 785 from 932 leaves us with 147.
Bring next digit (4) of the dividend behind the 147 and repeat the process: 1474 / 157

On to step 5:
The number 157 fits into 1474 9 times, leaving a remainder of 61.
Write down 9 as next digit of the result. 
Result so far: 259.0
Subtract 1413 from 1474 to get 61.
Bring next digit (4) of the dividend behind the 61 and repeat the process: 614 / 157

Advancing to step 6:
The number 157 fits into 614 3 times, leaving a remainder of 143.
Write down 3 as next digit of the result. 
Result so far: 2593.0
Deduct 471 from 614 and we're left with 143.
Grab the next digit (7) from the dividend, add it to 143, then carry on: 1437 / 157

Advancing to step 7:
When dividing 1437 by 157, we get 9 with a remainder of 24.
The next digit of our result is 9. 
Result so far: 25939.0
Subtracting 1413 from 1437 leaves us with 24.
Grab the next digit (7) from the dividend, add it to 24, then carry on: 247 / 157

Let's proceed to step 8:
The number 157 fits into 247 1 times, leaving a remainder of 90.
Record the quotient 1 as the next digit in the result. 
Result so far: 259391.0
Subtract 157 from 247 to get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Let's proceed to step 9:
900 divided by 157 is 5 with a remainder of 115.
The next digit of our result is 5. 
Result so far: 259391.5
Deduct 785 from 900 and we're left with 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1150, and continue the process.

Step 10:
If we divide 1150 by 157, we get 7 and a remainder of 51.
The next digit of our result is 7. 
Result so far: 259391.57
Subtract 1099 from 1150 to get 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Step 11:
510 divided by 157 is 3 with a remainder of 39.
Write down 3 as next digit of the result. 
Result so far: 259391.573
If we subtract 471 from 510, we get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Going ahead to step 12:
When dividing 390 by 157, we get 2 with a remainder of 76.
Use 2 as the next digit of our solution. 
Result so far: 259391.5732
If we take 314 away from 390, we end up with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Moving on to step 13:
If we divide 760 by 157, we get 4 and a remainder of 132.
Write down 4 as next digit of the result. 
Result so far: 259391.57324
If we subtract 628 from 760, we get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Let's proceed to step 14:
1320 divided by 157 is 8 with a remainder of 64.
The number 8 becomes the next digit in our result. 
Result so far: 259391.573248
Deduct 1256 from 1320 and we're left with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Going ahead to step 15:
640 divided by 157 is 4 with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 259391.5732484
If we subtract 628 from 640, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 16:
When dividing 120 by 157, we get 0 with a remainder of 120.
The number 0 becomes the next digit in our result. 
Result so far: 259391.5732484
Subtract 0 from 120 to get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Our division results in 259391.5732484 with a remaining 1.2e-07.