I'm new to c++ and i want to represent a value as accurately as possible using "double" data type , why pi & area values aren't represented fully here ?enter image description here
expected that float and double will have different value representations in my code but they are showing the same accuracy with different size
Here is the code
#include <iostream>
using namespace std;
int main()
{
const double PI = 3.14159265359;
int radius = 6;
cout << "Since radius is " << radius << " Cm" << '\n';
cout << "and pi is " << PI << '\n';
double area = PI * radius;
cout << "Then the Area of the circle will equal (pi x radius)= " << area << '\n';
return 0;
}