We're dividing 315360 by 40 
We're looking to find how many times 40 goes into 315360.

Advancing to step 1:
3 divided by 40 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 40

Going ahead to step 2:
31 divided by 40 is 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Include the next digit (5) from the dividend after 31, then repeat: 315 / 40

Step 3:
40 can be fit into 315 7 times, resulting in a remainder of 35.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
If we subtract 280 from 315, we get 35.
Include the next digit (3) from the dividend after 35, then repeat: 353 / 40

On to step 4:
The number 40 fits into 353 8 times, leaving a remainder of 33.
Put 8 as the next digit of the answer. 
Result so far: 78.0
Subtracting 320 from 353 leaves us with 33.
Include the next digit (6) from the dividend after 33, then repeat: 336 / 40

Let's proceed to step 5:
40 goes into 336 8 times with a remainder of 16.
The next digit of our result is 8. 
Result so far: 788.0
If we subtract 320 from 336, we get 16.
Grab the next digit (0) from the dividend, add it to 16, then carry on: 160 / 40

Advancing to step 6:
If we divide 160 by 40, we get 4 and a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 7884.0
If we subtract 160 from 160, 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.

Let's proceed to step 7:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 7884.0
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.

Let's proceed to step 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 7884.0
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.

The quotient of the division is 7884.0, and the remainder is 0.0.