Number precision

Buzz B. kraydl at
Fri Aug 3 18:36:07 CEST 2001

Excuse the rookie question:

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