I have an array of floats: float net_pay[5] . Each element is a decimal number ie. 999.99, 35.42, 318.34 etc . What I would like to do is to scan the decimal portion, in first case it would be 99 to a variable cents. I know how to do it when the floats have always the same number of digits, however, in this case they are inconsistent. Anyone willing to explain or provide a link to a tutorial of some sort that would explain it to me?
Thanks in advance