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,685

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****Administrator**- Registered: 2005-06-28
- Posts: 25,313

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****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

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,685

Thank you Relentless!

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

Offline