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

You are not logged in.

- Topics: Active | Unanswered

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,631

Rewritten in JavaScript: Decimal to Fraction Converter

Please test it out

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

Offline

**ganesh****Moderator**- Registered: 2005-06-28
- Posts: 21,812

Hi MathsIsFun,

The Decimal to Fraction Converter works perfectly well! Brilliant work, MathsIsFun!!!

It is no good to try to stop knowledge from going forward. Ignorance is never better than knowledge - Enrico Fermi.

Nothing is better than reading and gaining more and more knowledge - Stephen William Hawking.

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 107,115

Hi;

Looks fine from here.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**Relentless****Member**- Registered: 2015-12-15
- Posts: 624

Hello

It works well. However, I have noticed some idiosyncrasies with many digits and repeating digits. It seems indecisive about whether to count a pattern as recurring or not when it repeats over 30 times, sometimes doing so, usually not. Also, every now and again (with over 30 digits) the greatest common factor is negative.

I think it is convenient that there is a way for it to interpret patterns as recurring, though

*Last edited by Relentless (2016-01-21 02:12:28)*

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,631

Thank you Relentless!

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

Offline