An open API service indexing awesome lists of open source software.

https://github.com/palashmon/generate-pi-cli

🚀 Find PI(π) to the Nth Digit
https://github.com/palashmon/generate-pi-cli

cli cli-app generate library pi

Last synced: 12 months ago
JSON representation

🚀 Find PI(π) to the Nth Digit

Awesome Lists containing this project

README

          

# generate-pi-cli

> Find PI(Ï€) to the Nth Digit

![CI](https://github.com/palashmon/generate-pi-cli/actions/workflows/main.yml/badge.svg)
[![npm version](https://img.shields.io/npm/v/generate-pi-cli.svg)](http://npm.im/generate-pi-cli)
[![npm downloads](https://img.shields.io/npm/dm/generate-pi-cli.svg)](http://npm.im/generate-pi-cli)

## Install

```bash
$ npm install -g generate-pi-cli
```

## Usage

```bash
$ gen-pi --help

Usage
$ gen-pi [input]

Default Input
50 [By default, will show PI(Ï€) to 50 decimal places]

Max Input
200 [Currently upto 200 decimal places are shown
Will default to 200, if input more than 200]

Examples
$ gen-pi
3.14159265358979323846264338327950288419716939937510

$ gen-pi 10
3.1415926535
```

## Related

- [generate-pi](https://github.com/palashmon/generate-pi)- API for this module

## License

MIT © [Palash Mondal](https://github.com/palashmon)