rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Need a function to compute the period length of a repeating decimal for fractions #681

Open rlwhitcomb opened 2 weeks ago

rlwhitcomb commented 2 weeks ago

As in here: https://www.quora.com/Similar-rational-fractions-like-say-1-7-produce-a-decimal-loop-say-0-142857-Is-there-a-fast-way-to-determine-the-length-of-a-loop-for-any-fraction-a-b-without-calculating-it/answer/Alon-Amit?ch=17&oid=1477743774818363&share=52b6e817&srid=obNJ&target_type=answer

Could use the paren notation for 0.003(76712328) for instance. That would be cool.