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

On to step 1:
5 divided by 40 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (9) of the dividend behind the 5 and repeat the process: 59 / 40

Let's proceed to step 2:
The number 40 fits into 59 1 times, leaving a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 40 from 59 to get 19.
Fetch the next digit (7) from the dividend, attach it to 19 and continue: 197 / 40

On to step 3:
40 goes into 197 4 times with a remainder of 37.
Put 4 as the next digit of the answer. 
Result so far: 14.0
Deduct 160 from 197 and we're left with 37.
Grab the next digit (8) from the dividend, add it to 37, then carry on: 378 / 40

Let's proceed to step 4:
The number 40 fits into 378 9 times, leaving a remainder of 18.
Write down 9 as next digit of the result. 
Result so far: 149.0
The remainder is 18 after subtracting 360 from 378.
Grab the next digit (3) from the dividend, add it to 18, then carry on: 183 / 40

On to step 5:
40 can be fit into 183 4 times, resulting in a remainder of 23.
The number 4 becomes the next digit in our result. 
Result so far: 1494.0
Deduct 160 from 183 and we're left with 23.
Append the next digit (0) from the dividend to 23 and continue with: 230 / 40

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

Let's proceed to step 7:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 14945.7
Subtracting 280 from 300 leaves us 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.

Going ahead to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 14945.75
If we take 200 away from 200, we end up 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:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 14945.75
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.

On to step 10:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 14945.75
If we take 0 away from 0, we end up 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.

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