cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
What is the difference between double an
What is the difference between double and long double?
Feb 5, 2012 at 7:29pm UTC
johnhoffman
(30)
Both the double and long double data types take up 8 bytes according to
http://www.cplusplus.com/doc/tutorial/variables/
They also seem to have the same precision and range.
Why do they both exist then?
Feb 5, 2012 at 7:33pm UTC
Moschops
(7244)
Compilers vary. Some compilers will have different sizes for these.
Topic archived. No new replies allowed.