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
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 ...
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
if you realize that 0.75 = 75/100 you can do a simplification (Greatest common divisor) and you will have 3/4.