I have to detect whether a double is a fraction or not.
So, coming from a C background, I thought I should convert the double to an array of chars and check to see if theres any non-zero numbers to the right of the decimal place.
Is this the right way to go about it? If it is, how would i do it?
I don't think I'm allowed to import any packages.