1.1.6 • Published 3 years ago

identification_number v1.1.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

identification_number

Introduction:

identification_number is an math library, offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions.

for Example:
  • is the number comply with the rules of the "7 Boom" game.
  • Is the number a prime number?
  • Is the number even or odd? The goal is to prevent the user from performing various mathematical operations to reach the results that the package functions can bring in seconds.

Features:

  • Supports numbers, big numbers, complex numbers, fractions.
  • Contains a flexible expression parser.
  • Does symbolic computation.

Example:

"7 Boom":

function seven_boom(num){
    num_string = num.toString();
    if (num % 7 === 0){
        console.log("Boom")
    }
        if( (num_string.toLowerCase().includes("7")) === true) {
            console.log("Boom"); } else { console.log(${num}); 
        }
}
The result:
seven_boom(4568); \\4568
seven_boom(77); \\Boom

Exports:

  module.Exports = { 
    seven_boom: seven_boom,
    numprim: numprim,
    Check_number: Check_number
}

Installing:

node.js:

npm install identification_number

Using:

Enter the following code in the document and select the function relevant to you, as follows:

ver x = require("identification_number"); 
x.The name of the function(The number you are checking); \\Example: x.seven_boom(5);

or 

x = require("identification_number"); 
x.The name of the function(The number you are checking); \\Example: x.seven_boom(5);

🔗 Links:

GitHub

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago