|
Re: Strange products upon running code...
Quote:
|
Originally Posted by Mike Betts
Andrew,
Try:
unsigned int WheelCirc = ((long) WHEEL_RAD * 710) / 113;
Note that the above will still fail if WHEEL_RAD gets too large...
Mike
|
That worked! Thanks!! *looks at your signature* I'll keep the 355/113 trick in mind  . One question though, what happens when you put the (long) in front of WHEEL_RAD?
__________________
Andrew Neilson - Team 772 Alumnus
University of Waterloo Computer Science, Class of 2010
|