1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-10-27 20:34:12 +00:00

Fully tested NOT, all that is left are the shifts.

This commit is contained in:
Favian Contreras 2014-12-04 21:56:29 -08:00
parent b9287583e6
commit 65eb4aae51
3 changed files with 100131 additions and 1 deletions

View File

@ -844,7 +844,7 @@
external = false;
Decimal['precision'] = MAX_DIGITS;
var x = this['plus'](Decimal['ONE']);
var x = this['trunc']()['plus'](Decimal['ONE']);
x['s'] = -x['s'] || null;
Decimal['precision'] = prevPrec;

100128
test/not.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -272,6 +272,8 @@ while i < 200000:
if x > biggest:
biggest = x
if y > biggest:
biggest = y
if i % 100 == 0:
print(i)