For example, If I enter like 2.75, I only want to get the .75 * 60. So I would have 2.45.
I do this because I have homework that like this number.
Thx for reply... but I dont understand completely on how to modf (). From the example, I understand that I have to use cmath in order to use modf ().
You do realize that this is a C++/C forum, and not an Objective-C forum?