Package Exports
- generate-pi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generate-pi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
generate-pi
Find PI(π) to the Nth Digit
Installation
Via Npm:
npm install generate-pi
Usage
var generatePi = require('generate-pi');
// Find PI(π) to the 'n' decimal places
// where n is any number between 0 and 200
var pi = generatePi.get(n);
// Find PI(π) to the 10 decimal places
var pi10 = generatePi.get(10);
// "3.1415926535"
// Default to 200 decimal places
var pi200 = generatePi.get();
Via Browser:
<script src="dist/index.umd.min.js"></script>
<script>
var pi10 = generatePi.get(10);
var pi200 = generatePi.get();
Run Tests
npm run test