We're dividing 40286998 by 318 
We want to divide 40286998 by 318.

Moving on to step 1:
If we divide 4 by 318, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 318

Moving on to step 2:
318 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Fetch the next digit (2) from the dividend, attach it to 40 and continue: 402 / 318

Advancing to step 3:
402 divided by 318 is 1 with a remainder of 84.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 318 from 402 leaves us with 84.
Grab the next digit (8) from the dividend, add it to 84, then carry on: 848 / 318

On to step 4:
The number 318 fits into 848 2 times, leaving a remainder of 212.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 636 from 848, we get 212.
Bring next digit (6) of the dividend behind the 212 and repeat the process: 2126 / 318

Step 5:
318 goes into 2126 6 times with a remainder of 218.
Put 6 as the next digit of the answer. 
Result so far: 126.0
Deduct 1908 from 2126 and we're left with 218.
Fetch the next digit (9) from the dividend, attach it to 218 and continue: 2189 / 318

Moving on to step 6:
The number 318 fits into 2189 6 times, leaving a remainder of 281.
Write down 6 as next digit of the result. 
Result so far: 1266.0
Subtracting 1908 from 2189 leaves us with 281.
Take the next digit (9) from the dividend and append it to 281, then repeat: 2819 / 318

Advancing to step 7:
318 goes into 2819 8 times with a remainder of 275.
Use 8 as the next digit of our solution. 
Result so far: 12668.0
If we subtract 2544 from 2819, we get 275.
Grab the next digit (8) from the dividend, add it to 275, then carry on: 2758 / 318

Moving on to step 8:
When dividing 2758 by 318, we get 8 with a remainder of 214.
Record the quotient 8 as the next digit in the result. 
Result so far: 126688.0
Subtract 2544 from 2758 to get 214.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2140, and continue the process.

Let's proceed to step 9:
When dividing 2140 by 318, we get 6 with a remainder of 232.
Put 6 as the next digit of the answer. 
Result so far: 126688.6
If we take 1908 away from 2140, we end up with 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Let's proceed to step 10:
If we divide 2320 by 318, we get 7 and a remainder of 94.
Use 7 as the next digit of our solution. 
Result so far: 126688.67
Deduct 2226 from 2320 and we're left with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Going ahead to step 11:
940 divided by 318 is 2 with a remainder of 304.
Write down 2 as next digit of the result. 
Result so far: 126688.672
Subtract 636 from 940 to get 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Let's proceed to step 12:
318 can be fit into 3040 9 times, resulting in a remainder of 178.
Write down 9 as next digit of the result. 
Result so far: 126688.6729
Subtracting 2862 from 3040 leaves us with 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Going ahead to step 13:
318 goes into 1780 5 times with a remainder of 190.
Write down 5 as next digit of the result. 
Result so far: 126688.67295
Subtracting 1590 from 1780 leaves us with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Step 14:
318 can be fit into 1900 5 times, resulting in a remainder of 310.
The number 5 becomes the next digit in our result. 
Result so far: 126688.672955
Subtracting 1590 from 1900 leaves us with 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

The final outcome is 126688.672955, with a leftover of 3.1e-05.