tiffany352 / rink-rs

Unit conversion tool and library written in rust
https://rinkcalc.app/about
GNU General Public License v3.0
406 stars 28 forks source link

Display recurring digits #162

Closed tiffany352 closed 2 months ago

tiffany352 commented 3 months ago

Implements #72.

> 1/7
0.[142857]...  (dimensionless)

Also changes the behavior of to digits so that it will attempt to find long-period recurring digits and show the entire sequence. The new default for to digits is to show up to 1000 recurring digits.

> googol/7 to digits
1428571428571428571428571428571428571428571428571428571428571428571428571428571428571428571428571428.[571428]...  (dimensionless)
> surveyfoot to digits
0.[304800609601219202438404876809753619507239014478028956057912115824231648463296926593853187706375412750825501651003302006604013208026416052832105664211328422656845313690627381254762509525019050038100076200152400, period 210]... millimeter (length)

Todo: