I've got this code and I'm trying to multiply something times 1.3 (float value)
Anyways, P is defined:
int p=0;
Here's the code:
I'm looking to multiply the int value (non decimal number) times 1.3 as in the above code.Code:for(pos = (minimum+(p*1.3)); pos < (maximum-p); pos += 1) { myservo.write(pos); delay(3); } for(pos = (maximum-p); pos>=(minimum+(p*1.3)); pos-=1) { myservo.write(pos); delay(3); }
Will this work? I don't need a float for resolution... just an integer but I'd like to multiply by float values.
Just unsure of how all of the float and integer values work together.