modf is for doubles, no?

Gerald Gutierrez gutier@intergate.bc.ca
Sat Nov 13 00:26:00 GMT 1999


Hi all.

In libstdc++-2.90.6/testsuite/26_numerics/modf_float.cc, it checks to
see whether modf will work with floats. My make check fails because (I
think) it says that it works on doubles, not floats.

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

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



More information about the Libstdc++ mailing list