Closed zaptm closed 4 years ago
It took some effort to track down but effectively it comes down to precision. The math
library in Python uses floating point numbers for everything and this library uses Decimal
objects for everything. The result is a broken calculation.
Anyhow, I've fixed the isssue in the new release :)
Awesome, thank you. I think I've run into the same thing... Python. Wonderful language which fails in really odd ways sometimes. ;)
Hi,
First of all thank you for this little workflow. It's so nice to not have to use google all the time just to convert between meters and feet :)
I've found an issue when to do operations on the result from a function. In a nutshell you either get
0
or the value of the first token depending on if you put spaces around the operator or not.An example:
I've tried with a couple of different expressions and it seems to consistently behave like this. Expressions without functions are working as expected.
I'm using the latest version from git (downloaded on 2020-03-26). There also doesn't seem to be any useful information in the log.