When i use float or double in c++ after eight digit is getting overflow, how fix it?
This is my code :
#include <iostream.h>
#include <conio.h>
void main() {
double x;
cout<<"double : ";
cin>>x;
cout<<endl<<x;
getch();
}
When cin = 123456789 , this is my cout : 123457e.08.