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?



If you look on the exact same page you referenced, down below it says

modf(long double, long double*)

In fact, everything listed in the top half of the page is reflected in
the bottom half, with s/float/long double/. 

You probably know much more than I do about this, since I rarely look
at this stuff. Does this mean modf()'s overloaded?


Benjamin Kosnik writes:
 > > 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]