We look at the division of 502364 by 97 
We're looking to find how many times 97 goes into 502364.

Going ahead to step 1:
97 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 97

Advancing to step 2:
If we divide 50 by 97, we get 0 and a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Fetch the next digit (2) from the dividend, attach it to 50 and continue: 502 / 97

Step 3:
97 can be fit into 502 5 times, resulting in a remainder of 17.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 485 from 502 and we're left with 17.
Include the next digit (3) from the dividend after 17, then repeat: 173 / 97

Going ahead to step 4:
173 divided by 97 is 1 with a remainder of 76.
Write down 1 as next digit of the result. 
Result so far: 51.0
The remainder is 76 after subtracting 97 from 173.
Take the next digit (6) from the dividend and append it to 76, then repeat: 766 / 97

Advancing to step 5:
The number 97 fits into 766 7 times, leaving a remainder of 87.
Record the quotient 7 as the next digit in the result. 
Result so far: 517.0
The remainder is 87 after subtracting 679 from 766.
Take the next digit (4) from the dividend and append it to 87, then repeat: 874 / 97

Moving on to step 6:
The number 97 fits into 874 9 times, leaving a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 5179.0
Subtract 873 from 874 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
If we divide 10 by 97, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 5179.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 8:
If we divide 100 by 97, we get 1 and a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 5179.01
If we take 97 away from 100, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 9:
30 divided by 97 is 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 5179.01
Subtracting 0 from 30 leaves us 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.

Going ahead to step 10:
97 goes into 300 3 times with a remainder of 9.
The next digit of our result is 3. 
Result so far: 5179.0103
Subtracting 291 from 300 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 11:
90 divided by 97 is 0 with a remainder of 90.
Write down 0 as next digit of the result. 
Result so far: 5179.0103
Subtract 0 from 90 to get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Moving on to step 12:
97 can be fit into 900 9 times, resulting in a remainder of 27.
Put 9 as the next digit of the answer. 
Result so far: 5179.010309
The remainder is 27 after subtracting 873 from 900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 13:
97 can be fit into 270 2 times, resulting in a remainder of 76.
The next digit of our result is 2. 
Result so far: 5179.0103092
Subtract 194 from 270 to get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Going ahead to step 14:
If we divide 760 by 97, we get 7 and a remainder of 81.
Write down 7 as next digit of the result. 
Result so far: 5179.01030927
Deduct 679 from 760 and we're left with 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

The final result is 5179.01030927 with a remainder of 8.1e-08.