This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: modf is for doubles, no?


> My Stroustrup book says that modf() is for doubles, not floats. 

see 26.5 C library, p 6. The signature in the standard is 

float modf*float, float*)

> I assume the test is correct. What is being tested in this file?

Probably some of the autoconf stuff not being completely trashed. There's
a bunch of configuring that goes into bits/std_cmath.h, and it's a test to
make sure some of the more obvious things are not completely broken.

-benjamin


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