0

I can't seem to get modf to work. Can someone help? It might be called fmod.

    change = coins % Quarters; 

    if  (change >= Quarters)  
    { 
        change  = coins - Quarters; 
        printf ("%f", change  );
    }
        else 
    {
        printf ("%f", change);
    }
0

I decided to just make both variables multiplied by 100

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .