Hi,
Yes, explicitly converting those constants to doubles is a good
idea:
{
cout << "sine 63 = " << sin(double(63)) << endl;
Really speaking for C++, that should be
cout << "sine 63 = " << sin(static_cast<double>(54)) <<
endl;
which then compiles cleanly on my FC2 install (gcc 3.3.3).
But even that shouldn't be needed to compile. It wasn't from 2.96 up!
double sin(double x);
TTFN
Paul
--
"Our enemies are innovative and resourceful - and so are we,"
"They never stop thinking about new ways to harm our country and our
people - and neither do we." - George W. Bush, Aug 2004