Number precision

Buzz B. kraydl at hotmail.com
Fri Aug 3 12:36:07 EDT 2001


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?



More information about the Python-list mailing list