View Single Post
  #2   Spotlight this post!  
Unread 30-10-2003, 01:15
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
Unhappy floats = ummm... big

floats... the only thing bigger is the infamous double float. A single float is 4 bytes. and you have an array of what...... 82x3? so that means, unless i am way off, that this single array is using a total of 984 bytes. Kinda big, no? in my experience, it is easier to use an int or, depending on if negatives will be used, an unsigned int. Or if your values are msall enough use a char or unsigned char (1 byte each ). Floats just have way more precision that you really need.

P.S. if i am gravely wrong, someone please tell me.
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;

Horray for most things! -George Carlin

"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year