J
Jonny
If you run the following code , you will get 1.12346e07 as the output. What
do I need to do if you want all the significant digits output, like
1.123456789e07?
#include<iostream>
using namespace std;
int main () {
long a = 1123456789;
float p = 100;
double d = (double) (a / p) ;
cout << "double = " << d << endl;
}
Thanks in advance..
-Jonny
do I need to do if you want all the significant digits output, like
1.123456789e07?
#include<iostream>
using namespace std;
int main () {
long a = 1123456789;
float p = 100;
double d = (double) (a / p) ;
cout << "double = " << d << endl;
}
Thanks in advance..
-Jonny