Whats the difference between a double and a float?
tomtetlaw
-1
Posting Pro
Recommended Answers
Jump to PostDouble is (on most systems) 8 bytes, where float is only 4. This means that double is more precise then float. This also means that doubles have less problems with rounding errors.
My personal rule of thumb is:
Use float if speed and memory-use are a (big) issue and …
Jump to PostThe reason for using parentheses is because it's defined like that in the standard:
That's kind of what he said:
When the operand for sizeof is a type, you have to use parentheses
He only explained further why it might be in the standard.
Who cares about the fact that …
Jump to Post>On the downside: no more time for office-sword-fighting
This reminds me about the cover of the Dragon Book
[img]http://www.stewart.cs.sdsu.edu/cs524/spr08/bookCover_51XtGJ64tZL._SS500_.jpg[/img]
All 10 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
mvmalderen
2,072
Postaholic
tomtetlaw
-1
Posting Pro
mvmalderen
2,072
Postaholic
Yiuca
33
Junior Poster in Training
Tom Gunn
1,164
Practically a Master Poster
mvmalderen
2,072
Postaholic
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
mvmalderen
commented:
OK, I agree. BTW, nice cartoon :)
+10
Tom Gunn
1,164
Practically a Master Poster
siddhant3s
1,429
Practically a Posting Shark
Nick Evan
commented:
Haha
+19
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.