This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fmod problem


sorry, that's:
#include <cmath>

Trevor wrote:

I'm getting an odd warning with fmod(), any ideas?

#include <ctime>
//--snip--
fmod( 2.5, 1.5);


Results in: argument to `long int' from `double' assignment to `long int' from `double'





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]