ScratchData LogoScratchData
Back to Zro716's profile

Decimal -> Fraction Calculator

ZRZro716•Created March 28, 2015
Decimal -> Fraction Calculator
23
15
917 views
View on Scratch

Instructions

Enter a decimal number and I'll attempt to convert it to a vulgar fraction.

Description

Credit to @gtoal for the base project though at this point everything except the balance picture is mine. Here's another method to convert a decimal to its fractional value. To do this, the program first has to make the numerator and denominator integer values (multiply by ten until modulo 1 == 0). Next the program uses Euclid's method to find the greatest common divisor of the fractional parts and divides them by the result. This process can convert much larger decimals by implementing my infinite precision calculator.

Project Details

Project ID54880800
CreatedMarch 28, 2015
Last ModifiedNovember 2, 2015
SharedMarch 30, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root