View Single Post
  #2   Spotlight this post!  
Unread 15-01-2007, 19:49
teh_pwnerer795 teh_pwnerer795 is offline
Registered User
AKA: !!Mitch!!
FRC #1392
Team Role: Programmer
 
Join Date: Nov 2006
Rookie Year: 2006
Location: Ajax, Canada
Posts: 142
teh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really niceteh_pwnerer795 is just really nice
Send a message via MSN to teh_pwnerer795 Send a message via Yahoo to teh_pwnerer795
Re: Floating Points and rounding

Quote:
Originally Posted by JBotAlan View Post
I am personally using floating points in my code. It hasn't posed a problem, except that you can expect problems with printf related to floating points. Just multiply it by however many decimal places * 10 and printf that typecast as an integer.

Now, I'll warn you now, Al S. (I don't remember all of the last name) is going to give you some heat for using floating points on our non-floating point-native controller... but I see no problems with it...yet. It is bad practice, and I agree with him wholeheartedly, except that I'm too lazy to figure out how to represent what I need as a long/integer. Al, if you have any suggestions, I'd be glad to hear them.

JBot
kool. how do i set them.

double = PAN_DEGREE;?
__________________
Great Art is Created; Master Pieces are Stolen

[n00b]Teh_Foxdonut teh_pwnerer795 - CounterStrike:Source