I just had a question about the double and float data types: what's the difference?
for example:
would print out > 1.12346, which is only 6 digits, yet double is supposed to have 10 i thought?Code:double asdf = 1.123456789; cout << asdf;
if I were to declare the asdf var. as float, it would have printed the same thing. I thought double could hold more.
Thanks to anyone who can un-confuse me