mrithula — 2011-09-29T05:18:57-04:00 — #1
could somebody help?
sceptik — 2011-09-29T06:02:46-04:00 — #2
mrithula — 2011-09-29T06:28:36-04:00 — #3
The link just shows addition of fractions and not determining whether a number is rational.
paul_wilkins — 2011-09-29T07:53:33-04:00 — #4
Did you know that anything that is able to be represented as a fraction, is a rational number?
Also, that computers can not store irrational numbers as actual numbers.
So, you'll need to pick what range of denominator you are willing to use as a maximum size for a rational number, and then determine whether any possible denominator results in an integer nominator.
Good luck with your assignment there.