Giter Site home page Giter Site logo

big-number-format's Introduction

big-number-format

It formats big numbers like pi.

Example

It turns 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989

into this:

     |    1     6     11    16    21    26    31    36    41    46    
-----+---------------------------------------------------------------
   0 | 3. 14159 26535 89793 23846 26433 83279 50288 41971 69399 37510 
  50 |    58209 74944 59230 78164 06286 20899 86280 34825 34211 70679 
 100 |    82148 08651 32823 06647 09384 46095 50582 23172 53594 08128 
 150 |    48111 74502 84102 70193 85211 05559 64462 29489 54930 38196 
 200 |    44288 10975 66593 34461 28475 64823 37867 83165 27120 19091 
 250 |    45648 56692 34603 48610 45432 66482 13393 60726 02491 41273 
 300 |    72458 70066 06315 58817 48815 20920 96282 92540 91715 36436 
 350 |    78925 90360 01133 05305 48820 46652 13841 46951 94151 16094 
 400 |    33057 27036 57595 91953 09218 61173 81932 61179 31051 18548 
 450 |    07446 23799 62749 56735 18857 52724 89122 79381 83011 94912 
 500 |    98336 73362 44065 66430 86021 39494 63952 24737 19070 21798 
 550 |    60943 70277 05392 17176 29317 67523 84674 81846 76694 05132 
 600 |    00056 81271 45263 56082 77857 71342 75778 96091 73637 17872 
 650 |    14684 40901 22495 34301 46549 58537 10507 92279 68925 89235 
 700 |    42019 95611 21290 21960 86403 44181 59813 62977 47713 09960 
 750 |    51870 72113 49999 99837 29780 49951 05973 17328 16096 31859 
 800 |    50244 59455 34690 83026 42522 30825 33446 85035 26193 11881 
 850 |    71010 00313 78387 52886 58753 32083 81420 61717 76691 47303 
 900 |    59825 34904 28755 46873 11595 62863 88235 37875 93751 95778 
 950 |    18577 80532 17122 68066 13001 92787 66111 95909 21642 01989 
1000 |    

Todo

  • Format big numbers where they are big in the whole part not the fractional part.
  • Fix some hardcoded values

big-number-format's People

Contributors

calsch avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.