1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-24 12:54:47 +00:00

Fix for issue #20

This commit is contained in:
Jayson Harshbarger
2016-01-28 22:11:59 +09:00
parent 05e698aba6
commit 08263d4305
2 changed files with 6 additions and 0 deletions

View File

@@ -3875,6 +3875,7 @@
pi = getPi(Ctor, Ctor.precision, 1),
halfPi = pi.times(HALF);
x = Ctor(x);
x.s = 1;
if (x.lte(halfPi)) {