Uh... I gave you the reference to modf(). How much more explanation do you need?
i really dont know i just dont have any clue how to use modf even with the reference because the reference is specified in only 1 way in only 1 example.
I dont get how to drop the whole number and how to keep the decimal
i thought this was easy... apparently it is hard. ( for me )
Edit: If this is too much to ask for then forget it: but maybe an example program would help.
integers and floating points are stored in two entirely different fashions, so switching between one and the other (and back) as you are doing is a whole process. It's best to avoid that if you can.