We divide 588178 by 40
Let's see how many times 40 fits into 588178.

Moving on to step 1:
When dividing 5 by 40, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 40

Going ahead to step 2:
58 divided by 40 is 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 40 away from 58, we end up with 18.
Include the next digit (8) from the dividend after 18, then repeat: 188 / 40

Moving on to step 3:
The number 40 fits into 188 4 times, leaving a remainder of 28.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
The remainder is 28 after subtracting 160 from 188.
Take the next digit (1) from the dividend and append it to 28, then repeat: 281 / 40

Going ahead to step 4:
When dividing 281 by 40, we get 7 with a remainder of 1.
Record the quotient 7 as the next digit in the result. 
Result so far: 147.0
Subtracting 280 from 281 leaves us with 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 40

Step 5:
17 divided by 40 is 0 with a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 1470.0
If we subtract 0 from 17, we get 17.
Grab the next digit (8) from the dividend, add it to 17, then carry on: 178 / 40

Advancing to step 6:
178 divided by 40 is 4 with a remainder of 18.
The next digit of our result is 4. 
Result so far: 14704.0
If we subtract 160 from 178, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 7:
When dividing 180 by 40, we get 4 with a remainder of 20.
Put 4 as the next digit of the answer. 
Result so far: 14704.4
Subtract 160 from 180 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
40 goes into 200 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14704.45
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.

Step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 14704.45
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.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14704.45
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.

In conclusion, the division gives 14704.45 with a balance of 0.0.