Let's divide 298347 by 40
We want to divide 298347 by 40.

Let's proceed to step 1:
When dividing 2 by 40, we get 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 40

Going ahead to step 2:
40 can be fit into 29 0 times, resulting in a remainder of 29.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 29, we end up with 29.
Grab the next digit (8) from the dividend, add it to 29, then carry on: 298 / 40

Let's proceed to step 3:
If we divide 298 by 40, we get 7 and a remainder of 18.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we subtract 280 from 298, we get 18.
Take the next digit (3) from the dividend and append it to 18, then repeat: 183 / 40

Step 4:
When dividing 183 by 40, we get 4 with a remainder of 23.
Write down 4 as next digit of the result. 
Result so far: 74.0
Subtracting 160 from 183 leaves us with 23.
Take the next digit (4) from the dividend and append it to 23, then repeat: 234 / 40

Going ahead to step 5:
The number 40 fits into 234 5 times, leaving a remainder of 34.
Use 5 as the next digit of our solution. 
Result so far: 745.0
Deduct 200 from 234 and we're left with 34.
Bring next digit (7) of the dividend behind the 34 and repeat the process: 347 / 40

Going ahead to step 6:
40 can be fit into 347 8 times, resulting in a remainder of 27.
Record the quotient 8 as the next digit in the result. 
Result so far: 7458.0
The remainder is 27 after subtracting 320 from 347.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
If we divide 270 by 40, we get 6 and a remainder of 30.
Put 6 as the next digit of the answer. 
Result so far: 7458.6
Subtract 240 from 270 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
If we divide 300 by 40, we get 7 and a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 7458.67
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 7458.675
If we take 200 away from 200, 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.

Moving on to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 7458.675
Subtract 0 from 0 to 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 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 7458.675
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.

Our division results in 7458.675 with a remaining 0.0.