@navpreetdevpuri/base-2-n
Advanced tools
Comparing version 0.0.1 to 0.0.2
11
index.js
@@ -1,2 +0,2 @@ | ||
export default class Base2N { | ||
class Base2N { | ||
constructor(digits, n = 16, maxNoOfDigits = 50) { | ||
@@ -118,9 +118,2 @@ if (digits.length > maxNoOfDigits) { | ||
const a = new Base2N('\0', 1, 5); // base 2 | ||
const b = new Base2N('1', 1, 5); | ||
let c = a.add(b); | ||
console.log(a.toString()); // 0 | ||
console.log(b.toString()); // 3 | ||
console.log(c.toString()); // c | ||
c = c.subtract(b); | ||
console.log(c.toString() == a.toString()); // true | ||
module.exports = Base2N; |
{ | ||
"name": "@navpreetdevpuri/base-2-n", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "To work with base 2^n numbers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5426
105