Number precision

Emile van Sebille emile at fenx.com
Fri Aug 3 18:49:29 CEST 2001


Yes.

x = 50.0

HTH

--

Emile van Sebille
emile at fenx.com

---------
"Buzz B." <kraydl at hotmail.com> wrote in message
news:630035fe.0108030836.3a27647 at posting.google.com...
> 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