mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-01 13:50:36 +00:00
The math evaluator already contains a few checks for zero when we're executing operations that could cause a `Divide By Zero` error, but the actual value input is floating point and can get rounded to zero when the operation happens. This effectively allows zero values to bypass the checks to prevent them from being evaluated. To avoid the error completely we need to check that the rounded value is not zero, rather than the initial value. FIX() is used to make sure values such a `-.1` round to zero and are avoided. I also applied FIX() when we actually execute the operation, just to ensure the same behavior. |
||
---|---|---|
.. | ||
global | ||
ide | ||
subs_functions | ||
utilities | ||
.gitignore | ||
icon.rc | ||
qb64.bas | ||
qb64.ico |