Closed oceanofthelost closed 1 year ago
That's a nice catch and fix.
I was confused by the - 1
, so needed to read the manual and play around a bit. It seems that those calculations can only be applied to other calculated values, not simple numbers.
So an -offset 7 -Round_Up 4
has to be written as -offset - -7 -Round_Up 4
With #36 merged I think we can close this bug.
System
Distributor ID: Ubuntu Description: Ubuntu 22.04.1 LTS Release: 22.04 Codename: jammy
Error
A divide by zero error can occur when providing rounding:
When providing the following as input:
In each of the above cases, output will be
Issue is due to line
which is not verified to be non zero. In each of the above cases, immediately following parsing 0, 0 will be used and cause an exception.