bigjs-adapter
Advanced tools
Comparing version 2.3.0 to 2.4.0
{ | ||
"name": "bigjs-adapter", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "big.js adapter for linear-arbitrary-precision", | ||
@@ -5,0 +5,0 @@ "main": "src/bigjs-adapter.js", |
@@ -16,2 +16,3 @@ /*jshint node:true */ | ||
div: div, | ||
mod: mod, | ||
pow: pow, | ||
@@ -49,2 +50,6 @@ sqrt: sqrt, | ||
function mod(x, y) { | ||
return x.mod(y); | ||
} | ||
function pow(x, y) { | ||
@@ -51,0 +56,0 @@ return x.pow(Number(y)); |
@@ -49,2 +49,6 @@ /*jshint node:true, mocha:true */ | ||
it('should have a mod method', function() { | ||
adapter.mod(new Decimal('12'), new Decimal('5')).toString().should.be.exactly('2'); | ||
}); | ||
it('should have a pow method with support for ints only', function() { | ||
@@ -51,0 +55,0 @@ new Decimal('2').pow(new Decimal('3')).valueOf().should.be.exactly('8'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8463
147