Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bigjs-adapter

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bigjs-adapter - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

2

package.json
{
"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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc