Re: [Tutor] from __future__ import division

2008-03-23 Thread Alan Gauld
"Steve Willoughby" <[EMAIL PROTECTED]> wrote > normal division x/y works just as expected, with one caveat: > remember > that if you divide two *integer* values, you will get an *integer* > division operation yielding an *integer* result. So: It's worth pointing out that although beginners te

Re: [Tutor] from __future__ import division

2008-03-23 Thread Steve Willoughby
Dinesh B Vadhia wrote: > I spent fruitless hours trying to get a (normal) division x/y to work and > then saw that you have to declare: normal division x/y works just as expected, with one caveat: remember that if you divide two *integer* values, you will get an *integer* division operation yield

[Tutor] from __future__ import division

2008-03-23 Thread Dinesh B Vadhia
I spent fruitless hours trying to get a (normal) division x/y to work and then saw that you have to declare: > from __future__ import division .. at the top of a module file. What is this all about? Dinesh ___ Tutor maillist - Tutor@python.org htt