Elementary string-formatting
Odysseus
odysseus1479-at at yahoo-dot.ca
Sun Jan 13 04:43:13 EST 2008
In article
<e6f9c0c3-d248-46ae-af0f-fbb8ab279ab5 at v46g2000hsv.googlegroups.com>,
Roberto Bonvallet <rbonvall at gmail.com> wrote:
> Put this at the beginning of your program:
>
> from __future__ import division
>
> This forces all divisions to yield floating points values:
Thanks for the tip. May I assume the div operator will still behave as
usual?
--
Odysseus
More information about the Python-list
mailing list