node package manager

pi

Going deeper inside of the PI number.

$ pi

Patreon PayPal AMA Version Downloads Get help on Codementor

Going deeper inside of the PI number.

☁️ Installation

You can install the package globally and use it as command line tool:

$ npm i -g pi

Then, run pi --help and see what the CLI tool can do.

$ pi --help
3.

📋 Example

Here is an example how to use this package as library. To install it locally, as library, you can do that using npm:

$ npm i --save pi
// Dependencies 
var PI = require("pi");
 
console.log(PI(3));
// => 3.14 
 
console.log("First 16 decimals: " + PI(16, false));
// => First 16 decimals: 141592653589793 

📝 Documentation

For full API reference, see the DOCUMENTATION.md file.

😋 How to contribute

Have an idea? Found a bug? See how to contribute.

💰 Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. 🚀

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❤️

📜 License

MIT © Ionică Bizău