Brett Cannon added the comment:
If you're using Python 2.7 then that would explain what you're seeing. You can
either upgrade to Python 3 or use `from __future__ import division` to get the
result you're after.
--
nosy: +brett.cannon
resolution: -> not a bug
stage: -> resolved
stat
Karthikeyan Singaravelan added the comment:
Maybe you are looking for floor division?
https://docs.python.org/3.3/reference/expressions.html#binary-arithmetic-operations
> The / (division) and // (floor division) operators yield the quotient of
> their arguments. The numeric arguments are fir
New submission from dongjs :
>>> 17 / 3 # classic division returns a float
5.667
this example is error
what i test is below
>>> 17.0 / 3
5.667
>>> 17 / 3
5
--
messages: 357637
nosy: dongjs
priority: normal
severity: normal
status: open
title: Using Python as