|
Re: Floating Points and rounding
Quote:
Originally Posted by JBotAlan
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
|