Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

Login

Username

Password

Not registered yet?

#1 2006-08-10 11:18:38

MathsIsFun
Administrator

Offline

Decimal to Fraction Converter

An automatic Decimal to Fraction Converter. Does it work for you?


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman
 

#2 2006-08-10 11:32:20

Zhylliolom
Real Member

Offline

Re: Decimal to Fraction Converter

Is it supposed to be just a white box with an entry field for a number and an output box for the decimal?

Edit: Ok, when I hit the "." key everything shows up. Is it supposed to only show up after that happens? It gives me correct answers.

Last edited by Zhylliolom (2006-08-10 11:35:00)

 

#3 2006-08-10 12:02:25

Ricky
Moderator

Offline

Re: Decimal to Fraction Converter

Did you use the euclidean algorithm to find the gcd?  If you didn't, doing so would drastically speed things up.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."
 

#4 2006-08-10 23:55:16

Patrick
Real Member
Award: Wink Alive

Offline

Re: Decimal to Fraction Converter

seems to be working fine


Support MathsIsFun.com by clicking on the banners.
What music do I listen to? Clicky click
 

#5 2006-08-11 04:14:49

Devantè
Real Member

Offline

Re: Decimal to Fraction Converter

MathsIsFun wrote:

An automatic Decimal to Fraction Converter. Does it work for you?

It sure does. It'll be pretty useful for homework or just for fun, or for some other purpose. Nice work, especially with the text design for the title of it.

 

#6 2006-08-13 15:55:13

MathsIsFun
Administrator

Offline

Re: Decimal to Fraction Converter

Ricky wrote:

Did you use the euclidean algorithm to find the gcd?

Well of course ... ummm ... not. So I do now!

Thanks, Ricky it is a better tool now.

Bug patrol on the new version anyone? (I already know it looks pretty silly with long decimals.)

Oh, and Zhy ... I put an "example 1.25" as it *was* pretty unclear what to type.


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman
 

#7 2006-08-13 18:28:13

Zhylliolom
Real Member

Offline

Re: Decimal to Fraction Converter

Wow, the Euclidean algorithm sped this up exponentially. It works a lot better now, it instantly gives the answer.

 

Board footer

Powered by FluxBB