When dividing integers, replace "/"with "\". The "/"operator requires a single numeric value to be returned, so a seemingly simple line of code:
C% = A% / B%
In fact, there are three implicit conversion operations: two preparations for division, from integer to single; ; One completes the final assignment operation, from integer to single. But if you use the "\" operator, the situation is very different! Not only will there not be so many intermediate steps, but the execution speed will be greatly improved.
At the same time, remember that when using the "/"operator for division, if one of them is a Double type, the result will be a Double type. Therefore, when two integer or single-type values are divided, if you want to get high-precision results, you need to manually force one of them to be converted into Double type: