How do you do the foolowing in the C ++.

If I put 5.23 it will output Five and 23/100

Thanks.

Printable View

- 05-13-2002RomashkaC++ Word equivalent to number???
How do you do the foolowing in the C ++.

If I put 5.23 it will output Five and 23/100

Thanks. - 05-13-2002Liam Battle
HAHAHAHA

hey bud when is your homework assignment due?

ill post it when its late - 05-13-2002ErionD
>ill post it when its late

Lol :) - 05-13-2002ygfperson
here's a hint:

multiply that number by 10 until it's an integer

get the denominator from the above step

you now have a fraction. divide the numerator into the denominator: the integer part is the whole number, and your new numerator is the remainder