Transform int to float

CtrlAltElite:
I thought that dividing by 100.0 would "promote" the variable 'a' to a float automatically.

It does. I put that function in for clarity same as at times I might use parens that aren't necessary but do show my intent.

Arduino has a whole set of type conversion functions.