View Single Post
  #4 (permalink)  
Old 09-03-2007, 07:05 AM
Bench Bench is offline
Full Programmer
Join Date: Jul 2007
Location: UK
Posts: 113
iTrader: (0)
Bench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished roadBench is on a distinguished road
by "real" and "floating point" numbers, I mean non-integers that represent data with a fractional part.

floating point types can't be used for anything which requires an integer - Things like array indexes, enums, pointer-offsets, character representation, etc all need an integral value
You'll probably find that double will be useful in real-world calculations, such as trigonometry, currency, scientific values, etc.

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!

Last edited by Bench : 09-03-2007 at 07:15 AM.
Reply With Quote
The Following User Says Thank You to Bench For This Useful Post:
Lee (09-03-2007)