pi-generator.js
v1.2.5
Published
Generate Infinite Digits Of Pi!
Downloads
16
Maintainers
Readme
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