I am working on a homework assignment where I need to convert money in the form of a float to an int.
I know I could multiply the float by 100 and convert it into (cast?) an int. On the walk through for this problem set though, they talked about the need to round. I understand that .1 can't be represented accuratly as a float. None of the explanations I've read about rounding in c seem to solve my problem though. Obviously I'm confused. Could someone please explain or at least point me in the right direction? Thanks!