Post Reply 
Repeating Decimals / Recurring Decimals
01-21-2018, 11:00 AM (This post was last modified: 01-21-2018 04:34 PM by StephenG1CMZ.)
Post: #1
Repeating Decimals / Recurring Decimals
Given an integer reciprocal, analyzes the decimal representation to identify the transient and repeating/recurring parts of the decimal.

Eg
1/3 has no transient and 3 repeats.
1/4 has transient 0.25 and no repetition.
1/7 has no transient and 0.142857 recurring.
1/14 has transient 0 and 6 recurring digits.

See http://www.hpmuseum.org/forum/thread-9919.html
For a description of the algorithms and more examples.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Repeating Decimals / Recurring Decimals - StephenG1CMZ - 01-21-2018 11:00 AM
RE: Repeating Decimals - StephenG1CMZ - 01-21-2018, 11:01 AM



User(s) browsing this thread: 1 Guest(s)