Let's divide 40058028 by 813
We want to divide 40058028 by 813.

Advancing to step 1:
When dividing 4 by 813, we get 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 813

Going ahead to step 2:
40 divided by 813 is 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.
Append the next digit (0) from the dividend to 40 and continue with: 400 / 813

Going ahead to step 3:
When dividing 400 by 813, we get 0 with a remainder of 400.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 400 leaves us with 400.
Bring next digit (5) of the dividend behind the 400 and repeat the process: 4005 / 813

Moving on to step 4:
813 can be fit into 4005 4 times, resulting in a remainder of 753.
The next digit of our result is 4. 
Result so far: 4.0
Deduct 3252 from 4005 and we're left with 753.
Fetch the next digit (8) from the dividend, attach it to 753 and continue: 7538 / 813

Step 5:
7538 divided by 813 is 9 with a remainder of 221.
The number 9 becomes the next digit in our result. 
Result so far: 49.0
Subtract 7317 from 7538 to get 221.
Fetch the next digit (0) from the dividend, attach it to 221 and continue: 2210 / 813

Going ahead to step 6:
813 can be fit into 2210 2 times, resulting in a remainder of 584.
Use 2 as the next digit of our solution. 
Result so far: 492.0
Subtracting 1626 from 2210 leaves us with 584.
Bring next digit (2) of the dividend behind the 584 and repeat the process: 5842 / 813

Moving on to step 7:
The number 813 fits into 5842 7 times, leaving a remainder of 151.
Put 7 as the next digit of the answer. 
Result so far: 4927.0
Deduct 5691 from 5842 and we're left with 151.
Include the next digit (8) from the dividend after 151, then repeat: 1518 / 813

Going ahead to step 8:
813 can be fit into 1518 1 times, resulting in a remainder of 705.
Write down 1 as next digit of the result. 
Result so far: 49271.0
If we subtract 813 from 1518, we get 705.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7050, and continue the process.

Step 9:
7050 divided by 813 is 8 with a remainder of 546.
Put 8 as the next digit of the answer. 
Result so far: 49271.8
Deduct 6504 from 7050 and we're left with 546.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5460, and continue the process.

Let's proceed to step 10:
If we divide 5460 by 813, we get 6 and a remainder of 582.
Record the quotient 6 as the next digit in the result. 
Result so far: 49271.86
Subtracting 4878 from 5460 leaves us with 582.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5820, and continue the process.

On to step 11:
If we divide 5820 by 813, we get 7 and a remainder of 129.
Use 7 as the next digit of our solution. 
Result so far: 49271.867
Subtract 5691 from 5820 to get 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1290, and continue the process.

Advancing to step 12:
When dividing 1290 by 813, we get 1 with a remainder of 477.
The next digit of our result is 1. 
Result so far: 49271.8671
The remainder is 477 after subtracting 813 from 1290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

Step 13:
If we divide 4770 by 813, we get 5 and a remainder of 705.
The next digit of our result is 5. 
Result so far: 49271.86715
If we take 4065 away from 4770, we end up with 705.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7050, and continue the process.

Going ahead to step 14:
7050 divided by 813 is 8 with a remainder of 546.
Write down 8 as next digit of the result. 
Result so far: 49271.867158
Subtract 6504 from 7050 to get 546.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5460, and continue the process.

On to step 15:
813 can be fit into 5460 6 times, resulting in a remainder of 582.
Put 6 as the next digit of the answer. 
Result so far: 49271.8671586
Subtract 4878 from 5460 to get 582.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5820, and continue the process.

Advancing to step 16:
When dividing 5820 by 813, we get 7 with a remainder of 129.
Use 7 as the next digit of our solution. 
Result so far: 49271.86715867
If we take 5691 away from 5820, we end up with 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1290, and continue the process.

In conclusion, the division gives 49271.86715867 with a balance of 1.29e-07.