modf is for doubles, no?
Gerald Gutierrez
gutier@intergate.bc.ca
Thu Nov 18 00:18:00 GMT 1999
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
>
More information about the Libstdc++
mailing list