#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
float x=4548.546f;
double a=9.123456789;
long double aa=999.12345678l;
cout<<setprecision(6);
cout<<"double a:"<<a<<endl;
cout<<"long double a:"<<aa<<endl;
cout<<"float x:"<<x<<endl;
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: