1/2 evaluates to 0

Laurent moky.math at gmail.com
Wed Oct 12 07:28:35 EDT 2011


> Include from __future__ import division on the top of your file
>
>>>>  from __future__ import division
>>>>  1/2
> 0.5
>

Wohaw. This means that this behavior is going to be default in a 
foreseeable future ?

Thanks
Laurent



More information about the Python-list mailing list