Talk:BE.180:Assignment2

From OpenWetWare
Revision as of 22:47, 12 March 2006 by Yeem (talk | contribs) (→‎True division: typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

True division

When computing ratios for this assignment, I kept getting 0.0000 whenever my quotient would have been less than one. In Python 2.3.x, the '/' operator is used for floor division by default, so at the beginning of your code you should override this behavior with a line like

from __future__ import division

to enable true division. Hope this helps! yeem 00:46, 13 March 2006 (EST)