Question about the modf function from math.h. It uses double instead of float. It can't be used with a float variable . Correct ? Is there any function similar to this that can ? The problem I am having is when I input 9.1 it spits out .09999999 . When I put in 9.2 , it is fine and spits out .2 . What's the deal and what can I do about it?
Thanks for any replies.