Search:

Type: Posts; User: rcgldr

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    20,719

    That's about the size I thought that continued...

    That's about the size I thought that continued fraction method would be. I was thinking the repeated decimal string method might take less code, but once all the variations are handled, it probably...
  2. Replies
    16
    Views
    20,719

    You'll also need to check for fractions that are...

    You'll also need to check for fractions that are exact decimal values, such as .1520000000. For these, you'll need to multiply by 10, then subtract the integer part to see if the fractional part is...
  3. Replies
    16
    Views
    20,719

    You need to find the length of the repeating...

    You need to find the length of the repeating pattern and set n = length of repeating pattern. Then multiply the number by 10^n, then subtract that number from 10^n times the number. The result will...
Results 1 to 3 of 3