need help with turning decimals to fractions

This is a discussion on need help with turning decimals to fractions within the C++ Programming forums, part of the General Programming Boards category; ok so i dont want answers i just need a start..... i have to write a program that changes any ...

  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    10

    need help with turning decimals to fractions

    ok so i dont want answers i just need a start.....

    i have to write a program that changes any decimal to a fraction example 0.75 is 3 divided by 4

  2. #2
    Registered User
    Join Date
    Jul 2010
    Location
    BR
    Posts
    1
    if you realize that 0.75 = 75/100 you can do a simplification (Greatest common divisor) and you will have 3/4.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fractions
    By zdream8 in forum C Programming
    Replies: 2
    Last Post: 05-21-2008, 10:54 PM
  2. Need help to show decimals
    By engstudent363 in forum C Programming
    Replies: 4
    Last Post: 02-19-2008, 04:13 PM
  3. Algebraic Fractions
    By treenef in forum C++ Programming
    Replies: 8
    Last Post: 12-20-2005, 05:10 AM
  4. Fractions
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 04-01-2002, 07:51 AM
  5. Decimals to Fractions
    By ToasterPas in forum C++ Programming
    Replies: 4
    Last Post: 12-28-2001, 12:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21