Whenever I type this C++ code segment, i get an answer of 1.32679e-06. Does anyone know why this happens, or how to make the cosine of pi divided by 2 equal zero? It's a radians measurement, not a degrees measurement.
using namespace std;
const double PI = 3.14159;
cout << "cos(PI / 2) = " << cos(PI / 2) << "\n\n";