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:
[x] Attempt to make scientific notation show recurring digits as well
[ ] Fractions are currently only shown when the value is approximate. I want fractions to still be shown when recurring digits are used. This can be done separately.
[x] Use machine ints instead of bigints for speed. I don't really care for checking recurring sequences longer than 10 digits or so.
Implements #72.
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 forto digits
is to show up to 1000 recurring digits.Todo:
Fractions are currently only shown when the value is approximate. I want fractions to still be shown when recurring digits are used.This can be done separately.