Open EsotericDryad opened 11 months ago
Not really sure how to fix that, any ideas?
To prevent this from going stale I'll update, but I don't really have a simple and satisfying solution yet...
A few options are
I probably won't work on this, but would welcome a PR. fend is a great alternative to try out, trigonometry seems to work there
One thing about other decimal libraries is some have a much smaller range of possible numbers
Description: using "pi" with trig functions results in close but wrong floating point results
Steps to reproduce:
cpc 'sin(pi)'
orcpc 'sin(pi/2)'
Expected result:
0
and1
respectivelyActual result:
5.012535993076719585277299108368256E-35
and1.000000000000000000000000000000001