View Single Post
  #2   Spotlight this post!  
Unread 15-01-2007, 20:08
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Floating Points and rounding

Quote:
Originally Posted by JBotAlan View Post
Hmm, I use (for example):
Code:
double PAN_DEGREE = whatever
I didn't even know "float" was a data type! C is obviously not my native language; VB6 is. Which has more resolution? Forget it, I'll Google it.

I didn't know about the "f" after the numbers after, but I'd seen that at some point...can't remember where.

Thanks, I'll use some of that in my code!

JBot
ill save you the trouble- double has more resolution. but considering that a double is a 64-bit data type, i wouldn't use it all that much.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY