linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Integer arithmetic vs double precision arithmetic
@ 2006-03-26 15:14 Shriramana Sharma
  2006-03-26 16:12 ` Steve Graegert
  2006-03-26 16:12 ` Glynn Clements
  0 siblings, 2 replies; 9+ messages in thread
From: Shriramana Sharma @ 2006-03-26 15:14 UTC (permalink / raw)
  To: Linux C Programming List

I am trying to work out whether to use an integer or a double for my internal 
storage variable of a class meant to store a time.

Qt uses an unsigned integer with millisecond being the best precision, but I 
am wondering, why I should lose the extra digits of precision that I could 
get if I used a double.

Is there a marked increase in computing speed if integer arithmetic is used 
compared to double precision?
 
-- 

Tux #395953 resides at http://samvit.org
playing with KDE 3.51 on SUSE Linux 10.0
$ date [] CCE +2006-03-26 W12-7 UTC+0530

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-03-27 17:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-26 15:14 Integer arithmetic vs double precision arithmetic Shriramana Sharma
2006-03-26 16:12 ` Steve Graegert
2006-03-26 16:24   ` Shriramana Sharma
2006-03-26 21:03     ` Glynn Clements
2006-03-26 23:35       ` Shriramana Sharma
2006-03-27  1:02         ` Glynn Clements
2006-03-27  8:32           ` Shriramana Sharma
2006-03-27 17:13             ` Glynn Clements
2006-03-26 16:12 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).