How to convert a decimal to a fraction easily? Given a decimal like $1.5$, I want to find an easy way to write it as $3/2$ in this case is easy but given a decimal such as $0.3760683761$, how could I figure out it can be written as $572/1521$? Thx.
Edit
In case anyone is interested in more about this, I found the following links (more could exist, but what I have is enough - Thx to your contributions):
Link 1, Link 2
 A: First note that $.\overline{376068}\cdot (1000000-1)=376068$.  It follows that
$$.\overline{376068}=\frac{376068}{999999}=\frac{572}{1521}.$$
Edit with more details.
In your example you have a repeating decimal $.\overline{376068}=.376068376068376068...$
Let $x=.\overline{376068}$.  If we multiply by $1000000$ we get $$1000000x=376068.376068376068...$$  If we now subtract $x$ we have $$1000000x-x=376068.\overline{376068} -0.\overline{376068}=376068.$$
It follows that $(1000000-1)x=376068$ and $x=\frac{376068}{999999}$.  Reducing this fraction gives the result you are looking for.
In general, if you have a terminating decimal you can multiply and divide by an appropriate power of ten (i.e. $1.5=1.5\cdot\frac{10}{10}=\frac{15}{10}=\frac{3}{2}$).  In the case of a repeating decimal, you can generalize the technique that I used above.  Note that I used $10^6=1000000$ in the solution as the repeating part of the decimal is six digits long.  If you have a non-terminating non-repeating decimal then you cannot write it as a fraction.
Hope that helps!
A: Note that any terminating decimal form can be written by multiplying the number by a power of $10$ until you get an integer, and then dividing by a power of $10$ until you get the original number.
In that sense, $1.5=\frac{15}{10}$ and the problem becomes factoring those two numbers. In this case we end up with $\frac{3\cdot5}{2\cdot5}$ which simplifies to the result.
Thus, for your example, the problem is really just finding the prime factorization of $3760683761$ and, since the denominator will be powers of $10=2\cdot5$, you can cancel out all powers of $2$ and $5$ that you can, and the result is further irreducible.
A: The difficulty with this question -- and it is one that has come up in the comments to several answers, but has not yet been explicitly addressed by any of the answers -- is that it appears that the number you are actually interested in is not the number you think you are interested in.
Here is a (completely hypothetical, made-up) scenario that I suspect is not too far off the mark from what is going on here.  You are trying to solve some kind of problem; maybe it's "find the zeroes of such-and-such polynomial".  Using a graphing calculator or some other form of computer algebra system, you graph the polynomial and then use the technology's built-in numerical tools to find the location of the zero.  The calculator tells you the answer is $0.3760683761$.  But the correct solution, according to the textbook, is $572/1521$.  You confirm, by entering this into your calculator, that the results are equal, and want to know how you could have found the fraction yourself.
But here's the thing: those results are not equal.  $572/1521$ is not $0.3760683761$.  It is only approximately that.  As Eric pointed out in his answer, $572/1521$ is actually equal to $0.376068~376068~376068 \dots$, with a repeating block of six digits.  If you round this to fit on a calculator display, the result will look like $0.3760683761$.  But that is misleading you:  That truncation cannot be converted into the form $572/1521$, because it isn't equal to $572/1521$.
So the real question ought to have three parts to it:

  
*
  
*If I see a decimal output that appears to terminate, how can I know if it is really just a truncated form of a repeating decimal with a long block of repeating digits?
  
*If the "true" decimal value is actually repeating, how do I convert it to a fraction?
  
*If the "true" decimal value is actually terminating, how do I convert it to a fraction?
  

For the second part of the question, see Eric's answer on how to express a repeating decimal as a fraction.
For the third part of the question, see Elliot G's answer on how to express a terminating decimal as a fraction.
The real problem is the first part.  How do you know if the decimal you see is actually the decimal you want?  The answer, unfortunately, is that if you are relying on some form of technology to produce your solution, there is no way to know.  Calculators are fundamentally finitary devices that work with numerical approximations.  A calculator can't understand the actual value of $1/3$, it can only understand $0.333333333$ to a finite number of places.  And if you see $0.333333333$ on a calculator screen, you can't really know if it is supposed to be $1/3$, or $333333333/1000000000$, or if maybe there are some other completely different digits hiding off the screen, buried deep in the decimal expansion.
More precisely, there is no way to tell from a finite string of digits whether you are looking at a part of a terminating decimal, a part of a repeating decimal, or a part of an irrational number.  There is just no way.  This leads to some (quite absurd) misconceptions, as for example in this page from a book for kids which blithely asserts that $8/23$ is an irrational number because its decimal expansion just goes "on and on" with no apparent pattern.
The moral of the story is, if you are expected (in a certain classroom context, which I assume is the case here) to solve a certain problem and get an answer like $572/1521$, the odds are good that you are supposed to solve it using some method that leads directly to that solution, rather than obtain an approximate numerical value using some technology and then try to reverse-engineer from it the correct value.
A: Assuming you aren't concerned with non-terminating decimals (numbers where the decimal portion never ends, like $0.5555555...$), you can always put a terminating decimal number into the form of a fraction by setting the denominator as 10^(number of digits in the decimal portion), then setting the numerator as the decimal multiplied by the denominator.
For example, $1.55$ has $2$ digits in its decimal portion ($55$), so the fraction form has denominator $10^2 = 100$, and numerator $1.55 \cdot (denominator) = 155$. Thus, its fraction form is $155/100$.
The problem with "reducing" your answer is that you have to find factors for both the numerator and denominator. Once you know what your factors are, then the rest of the process is pretty self-explanatory. Unfortunately, finding factors is not a simple task. There are no known functions that can solve general cases "easily": https://en.wikipedia.org/wiki/Integer_factorization
There are, however, tricks that can ease the task of brute forcing your way through finding factors: http://www.mathsisfun.com/divisibility-rules.html Also, you never have to check for factors past the square root of an integer (e.g. if I verified that all numbers up to 12 don't divide 127, then 127 must be prime). Practice these techniques, and you will eventually gain the intuition so that you won't have to "think" about the process of turning a decimal into a fraction.
A: Just do 1 ÷ your decimal (example: 0.135) and take that number, and and do the following: 1÷0.135=7.4074074 therefore if 0.135=0.135/1 then that is equal to 1/7.4074074 and now just multiply by multiples of ten (to both the numerator and the denominator) to get your fraction. Then it's a simple matter of reducing that fraction.
A: The theory of primes is that any number can be written as a product of prime factors, so 572/1521 can be written as 2*2*11*13 / 3*3*13*13 which reduces down to 44/117.
The theory of decimals is that any decimal number can be written as a product and ratio using three whole numbers, e.g. xxx.xxxx = A * B/C. 
