We're dividing 237940 by 40 
We want to divide 237940 by 40.

Going ahead to step 1:
40 goes into 2 0 times with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Grab the next digit (3) from the dividend, add it to 2, then carry on: 23 / 40

Let's proceed to step 2:
If we divide 23 by 40, we get 0 and a remainder of 23.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 23, we get 23.
Include the next digit (7) from the dividend after 23, then repeat: 237 / 40

Going ahead to step 3:
40 goes into 237 5 times with a remainder of 37.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we subtract 200 from 237, we get 37.
Include the next digit (9) from the dividend after 37, then repeat: 379 / 40

Step 4:
40 can be fit into 379 9 times, resulting in a remainder of 19.
Record the quotient 9 as the next digit in the result. 
Result so far: 59.0
If we subtract 360 from 379, we get 19.
Bring next digit (4) of the dividend behind the 19 and repeat the process: 194 / 40

On to step 5:
40 can be fit into 194 4 times, resulting in a remainder of 34.
Put 4 as the next digit of the answer. 
Result so far: 594.0
Subtracting 160 from 194 leaves us with 34.
Fetch the next digit (0) from the dividend, attach it to 34 and continue: 340 / 40

Advancing to step 6:
40 goes into 340 8 times with a remainder of 20.
The number 8 becomes the next digit in our result. 
Result so far: 5948.0
If we take 320 away from 340, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 7:
200 divided by 40 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 5948.5
Subtract 200 from 200 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.

Let's proceed to step 8:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 5948.5
If we subtract 0 from 0, we 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 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 5948.5
If we subtract 0 from 0, we 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.

Our division results in 5948.5 with a remaining 0.0.