I don't believe the casting is necessary. Just add a decimal point to those literals and you'll have doubles.

Paul wrote:



Date:
Tue, 31 Aug 2004 02:52:56 -0400


Hi,
[rlc@bobcp4 cpp]$ g++ -Wall -pedantic -o tsine tsine.cpp
tsine.cpp: In function `int main()':
tsine.cpp:8: error: call of overloaded `sin(int)' is ambiguous
    

Without seeing the source, how is a chap to know what you're doing?

TTFN

Paul