modf is for doubles, no?

Gabriel Dos Reis dosreis@cmla.ens-cachan.fr
Thu Nov 18 05:23:00 GMT 1999


[ sorry for being silent these days but I was overworked :-( ]


Gerald Gutierrez <gutier@intergate.bc.ca> writes:

| 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?

Indeed, 26.5/5 says:

	In addition to the <tt>double</tt> versions of the math
	functions in <cmath>, C++ adds <tt>float</tt> and <tt>long
	double</tt> overloaded versions of these functions, with the
	same semantics.


I'm still working to provide definitions for these animals... It just
happens that I have to look after many animals at the same time :-)

-- Gaby


More information about the Libstdc++ mailing list