Excuse the rookie question: x=50 x/100 results in 0 instead of .5 Now I can do: y = float(x)/100 to get the correct answer Is there a way to predefine x as a floating?