Skip to content

emmanouil/npm_find-in-pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Find in Pi

A small library that returns the location (index) of a number in the first ~1.5m decimal digits of Pi. Supported commands:

  • .findInPi(<number>) (returns index of number, starting counting after the decimal. i.e. for n=1 returns 1)
  • .getPi() (returns, as String the Pi series used for any search)

Installation

npm install find-in-pi

Usage

var fip = require('find-in-pi');

var numIndex = fip.findInPi(1900);

Output should be 4791

Tests

TODO

Contributing

...is welcome :)

About

Git repository for find-in-pi npm module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published