Does 'for(;;)' accept floats? Or will Inflate to integers then downscale within the loop code for use in calculations?
for does not care about data-types.
I was curious because my polar functions returned abnormally fast, ie the mechanics didn't move at all. i did however note that I had not explicitly typcast back to integer when saving the results to my integer based coordinate points.
ajofscott:
Does 'for(;;)' accept floats? Or will Inflate to integers then downscale within the loop code for use in calculations?
From the for() reference page (http://arduino.cc/en/Reference/For):
"Also the statements for initialization, condition, and increment can be any valid C statements with unrelated variables, and use any C datatypes including floats."