Hi,
using the following code:
The result should be -1 but it gives me out a value of -0,59..Code:#include <cmath> #include <iostream> using namespace std; int main(){ double z = 0; double z2 = 180; z = cos(z2); cout << z; return 0; }
Anyone knows the problem?
Thanks in advance!
~Jan