1/2 evaluates to 0
Laurent
moky.math at gmail.com
Wed Oct 12 07:28:35 EDT 2011
More information about the Python-list mailing list
Wed Oct 12 07:28:35 EDT 2011
- Previous message (by thread): 1/2 evaluates to 0
- Next message (by thread): 1/2 evaluates to 0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Previous message (by thread): 1/2 evaluates to 0
- Next message (by thread): 1/2 evaluates to 0
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list