Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 798 Bytes

README.md

File metadata and controls

44 lines (29 loc) · 798 Bytes

Find PI to nth digit

Calculates PI using Chudnovsky series

Table of Contents

  1. Run
  2. Options
  3. Examples

Run

npm install
node index.js [options]

or

npm run start -- [options]

Options

  • -d, --digits

    [required] Number of digits to calculate
  • -o, --out

    [optional] Path to save calculated pi
      if not specified the calculated PI will be output in console

Examples

$ node index.js -d 100
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170680
Execution time (hr): 0s 8.00646ms