pi-generator.js

1.2.5 • Public • Published

N|Solid

pigenerator

This NPM package generates infinite digits of pi for you!

Database Generate Example:

const pi = require('pi-generator.js')

console.log(pi("database", 1000000))

Output:

[1,000,000 Digits Of Pi]




If you wish to generate more than 1 Million Digits of pi you will need to compute it on your computer, Luckily we have a tool that does just that for you!

Compute Example 1

const pi = require('pi-generator.js')

//Without Progress Logging to show you how much has been computed so far
console.log(pi("compute", 100000))

Output:

[100,000 Digits Of Pi]


Compute Example 2

const pi = require('pi-generator.js')

//With Console Progress Logging to show you how much has been computed so far
console.log(pi("compute", 1000000, true))

Output:

[1,000,000 Digits Of Pi]




Our Other Projects: https://www.npmjs.com/~uhfinn

Dependents (0)

Package Sidebar

Install

npm i pi-generator.js

Weekly Downloads

0

Version

1.2.5

License

ISC

Unpacked Size

1 MB

Total Files

4

Last publish

Collaborators

  • uhfinn