We look at the division of 40388 by 37 
We want to divide 40388 by 37.

Going ahead to step 1:
If we divide 4 by 37, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 37

Moving on to step 2:
The number 37 fits into 40 1 times, leaving a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 37 from 40 and we're left with 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 37

Advancing to step 3:
The number 37 fits into 33 0 times, leaving a remainder of 33.
Write down 0 as next digit of the result. 
Result so far: 10.0
Subtracting 0 from 33 leaves us with 33.
Take the next digit (8) from the dividend and append it to 33, then repeat: 338 / 37

Going ahead to step 4:
338 divided by 37 is 9 with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 109.0
The remainder is 5 after subtracting 333 from 338.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 37

Going ahead to step 5:
If we divide 58 by 37, we get 1 and a remainder of 21.
The next digit of our result is 1. 
Result so far: 1091.0
If we subtract 37 from 58, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 6:
The number 37 fits into 210 5 times, leaving a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 1091.5
Subtracting 185 from 210 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 7:
37 can be fit into 250 6 times, resulting in a remainder of 28.
Write down 6 as next digit of the result. 
Result so far: 1091.56
The remainder is 28 after subtracting 222 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 8:
When dividing 280 by 37, we get 7 with a remainder of 21.
Put 7 as the next digit of the answer. 
Result so far: 1091.567
Deduct 259 from 280 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 9:
37 can be fit into 210 5 times, resulting in a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 1091.5675
Subtract 185 from 210 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 10:
When dividing 250 by 37, we get 6 with a remainder of 28.
Write down 6 as next digit of the result. 
Result so far: 1091.56756
Subtract 222 from 250 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 11:
The number 37 fits into 280 7 times, leaving a remainder of 21.
The number 7 becomes the next digit in our result. 
Result so far: 1091.567567
Subtract 259 from 280 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 12:
37 can be fit into 210 5 times, resulting in a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 1091.5675675
If we subtract 185 from 210, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 13:
250 divided by 37 is 6 with a remainder of 28.
Write down 6 as next digit of the result. 
Result so far: 1091.56756756
Subtract 222 from 250 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Our division results in 1091.56756756 with a remaining 2.8e-08.