I want to convert 3 to 3.00. I have done explicit type conversion. but guess it doesn't seem to work!whats wrong?
my code:
#include<iostream>
using namespace std;
int main(){
int PI = 3;
double a = static_cast<double>(PI);
cout<<a;
}
output: 3