Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

number-math

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

number-math

math operations

unpublished
Source
npmnpm
Version
1.0.13
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

number-math is a JavaScript math package.

How to use: 1.

```
        npm i number-math
```

2.

```
        import <anyname1> from './index.js'
        const <anyname2> = new <anyname1>();

        <anyname2>.somefunction();  
```

Function description:

  • getFactorial() // Gets the factorial of the number

  • isPrimes() // Is the number a prime

  • getFactors() // Gets all of the factors of that number

  • isRational() // Is number Rational or Irrational

  • changeBases(, ) // Changes a given number to a given base like base2 01001 for example

  • getFib() // Gets the Fibonacci sequence within a given limit

  • isAbundant() // Is number abundant or deficient

  • getCollatz() // Gets the Collatz sequence ends at 1

  • negativeExponent(, ) // Gets the negative exponent of a given base and exponent

  • isInteresting() // Is a number Interesting or Uninteresting, check out the Interesting number Paradox on Wikipedia text

  • floating(, ) // This function will make it so 0.1 + 0.2 actually equals 0.3 and not 0.30000004

  • isEven() // Is Number even or odd

  • pentagonNumber(target) // Gets a list of all pentagon numbers from 1 - target

  • repunitNumber(target) // Gets the repunit number of the given target

  • triangleNumber(target) // Gets the list of all triangle number between 1 - target

  • fizz(target) // Gets the fizzbuzz sequence from 1 - target

FAQs

Package last updated on 27 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts