We divide 12815 by 40
We're looking to find how many times 40 goes into 12815.

Step 1:
If we divide 1 by 40, we get 0 and a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 40

Let's proceed to step 2:
12 divided by 40 is 0 with a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 12 leaves us with 12.
Fetch the next digit (8) from the dividend, attach it to 12 and continue: 128 / 40

Let's proceed to step 3:
The number 40 fits into 128 3 times, leaving a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
The remainder is 8 after subtracting 120 from 128.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 40

Moving on to step 4:
If we divide 81 by 40, we get 2 and a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 32.0
If we take 80 away from 81, we end up with 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 40

Advancing to step 5:
40 goes into 15 0 times with a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 320.0
Subtract 0 from 15 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 6:
40 can be fit into 150 3 times, resulting in a remainder of 30.
Put 3 as the next digit of the answer. 
Result so far: 320.3
If we take 120 away from 150, we end up with 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 7:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 320.37
If we take 280 away from 300, 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.

On to step 8:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 320.375
Deduct 200 from 200 and we're left 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.

Going ahead to step 9:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 320.375
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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 320.375
Subtracting 0 from 0 leaves us 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.

The final result is 320.375 with a remainder of 0.0.