12940 ÷ 38 
Our goal is to divide 12940 by 38.

Advancing to step 1:
38 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 38

Advancing to step 2:
12 divided by 38 is 0 with a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 12, we get 12.
Grab the next digit (9) from the dividend, add it to 12, then carry on: 129 / 38

Going ahead to step 3:
The number 38 fits into 129 3 times, leaving a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Deduct 114 from 129 and we're left with 15.
Take the next digit (4) from the dividend and append it to 15, then repeat: 154 / 38

Advancing to step 4:
If we divide 154 by 38, we get 4 and a remainder of 2.
The next digit of our result is 4. 
Result so far: 34.0
The remainder is 2 after subtracting 152 from 154.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 38

On to step 5:
When dividing 20 by 38, we get 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 340.0
If we take 0 away from 20, 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.

Step 6:
If we divide 200 by 38, we get 5 and a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 340.5
The remainder is 10 after subtracting 190 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 7:
38 goes into 100 2 times with a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 340.52
If we take 76 away from 100, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 8:
When dividing 240 by 38, we get 6 with a remainder of 12.
Record the quotient 6 as the next digit in the result. 
Result so far: 340.526
Subtracting 228 from 240 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 9:
If we divide 120 by 38, we get 3 and a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 340.5263
Deduct 114 from 120 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 10:
60 divided by 38 is 1 with a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 340.52631
The remainder is 22 after subtracting 38 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 11:
The number 38 fits into 220 5 times, leaving a remainder of 30.
The next digit of our result is 5. 
Result so far: 340.526315
If we subtract 190 from 220, we 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.

Moving on to step 12:
38 can be fit into 300 7 times, resulting in a remainder of 34.
The next digit of our result is 7. 
Result so far: 340.5263157
If we take 266 away from 300, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 13:
38 can be fit into 340 8 times, resulting in a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 340.52631578
The remainder is 36 after subtracting 304 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Our division results in 340.52631578 with a remaining 3.6e-08.