We're dividing 40271 by 17 
Let's see how many times 17 fits into 40271.

On to step 1:
When dividing 4 by 17, we get 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 17

Going ahead to step 2:
17 can be fit into 40 2 times, resulting in a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 2.0
The remainder is 6 after subtracting 34 from 40.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 17

Advancing to step 3:
When dividing 62 by 17, we get 3 with a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 23.0
Subtract 51 from 62 to get 11.
Append the next digit (7) from the dividend to 11 and continue with: 117 / 17

Going ahead to step 4:
The number 17 fits into 117 6 times, leaving a remainder of 15.
Record the quotient 6 as the next digit in the result. 
Result so far: 236.0
Subtract 102 from 117 to get 15.
Bring next digit (1) of the dividend behind the 15 and repeat the process: 151 / 17

Advancing to step 5:
151 divided by 17 is 8 with a remainder of 15.
The number 8 becomes the next digit in our result. 
Result so far: 2368.0
Deduct 136 from 151 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 6:
17 goes into 150 8 times with a remainder of 14.
Record the quotient 8 as the next digit in the result. 
Result so far: 2368.8
Deduct 136 from 150 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
The number 17 fits into 140 8 times, leaving a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 2368.88
If we take 136 away from 140, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final outcome is 2368.88, with a leftover of 0.004.