Example
improper fraction: 8/5
convert to mixed number...
divide the numerator (8) by denominator (5)... this gives a quotent of 1 and
remainder of 3... the remainder is placed over the divisor (5)
so... the answer is 1 3/5
However, using the arithmitic operators does not provide the answer of a
mixed number. Dividing 8/5 produces 1.6. Using the mod operator only provides
the remainder.
I am a novice programmer so that I am probably missing a simple proccess
Thanks
"Matthew Smith" wrote:
In article <34**********************************@microsoft.co m>,
"Jeff" <Je**@discussions.microsoft.com> wrote:
I am trying to crete a method that will convert an improper fraction to a
mixed number...
I am not sure how about how to acomplish this. I know I can get the
remainder with the modulus operator (%), but I am not sure how to get the
quotent.
any insight would be appreciated.
An example would be helpful. I think I know what you want but I am not
sure, as it seems quite simple to me.