double and long double
Whats the difference between double and long double?
Size:
1 2 3 4 5 6 7 8 9 10 11
|
#include <iostream>
using namespace std;
int main()
{
cout << "sizeof(double)=" << sizeof(double) << endl;
cout << "sizeof(long double)=" << sizeof(long double) << endl;
cin.get();
return 0;
}
|
And precision:
http://en.wikipedia.org/wiki/Long_double
Last edited on
Thanks!
Topic archived. No new replies allowed.