Rounding error in pi
originalsouth opened this issue · comments
π = 3.14159265358979323... but for some reason pallache says:
% pallache --calc "pi;acos(-1)"
3.1415926535897931
3.1415926535897932
in version:
% pallache -V
pallache: git-hash bc8565869c24cc8a5086ff68ede1477d92605b60
pallache: source-hash 4d12e93e3d13de72dc66db351f2d27ad37b3851a
The problem was the omition of std::
in std::acos(-1.0L)
...
FIXED!