On Fri, 07 Jan 2011 03:32:54 +, Edward A. Falk wrote:
> In article
> , Ian
> wrote:
>>
>>In Python 3, the '/' operator always performs true division.
>
> How can I get integer division?
>>> 25//4
6
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 7, 2011 at 3:32 AM, Edward A. Falk wrote:
> In article <
> cd9d1c80-b1d2-4d20-9896-a6fd77bd7...@j25g2000yqa.googlegroups.com>,
> Ian wrote:
> >
> >In Python 3, the '/' operator always performs true division.
>
> How can I get integer division?
>
> --
>-Ed Falk, f...@despams.
In article ,
Ian wrote:
>
>In Python 3, the '/' operator always performs true division.
How can I get integer division?
--
-Ed Falk, f...@despams.r.us.com
http://thespamdiaries.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 6 Gen, 23:59, Ian wrote:
> On Jan 6, 3:49 pm, francesco wrote:
>
> > I'm pretty new in Python language. I have a problem with numbers: it
> > seems python doesn't know any more how to count!
> > I get only the down rounded integer
> > 20/8 = 2
> > 8/3=2
> > I probably changed some option to ro
Well, that's because 20 is integer. To get float you can write 20.0 (or 20.).
20.0/8.0 = 2.5
8.0/3.0 = 2.6665
07.01.2011, 00:49, "francesco" :
> I'm pretty new in Python language. I have a problem with numbers: it
> seems python doesn't know any more how to count!
> I get only the down
On Thu, Jan 6, 2011 at 10:49 PM, francesco
wrote:
> I'm pretty new in Python language. I have a problem with numbers: it
> seems python doesn't know any more how to count!
> I get only the down rounded integer
> 20/8 = 2
> 8/3=2
> I probably changed some option to round the numbers, but I don't
>
On Jan 6, 3:49 pm, francesco wrote:
> I'm pretty new in Python language. I have a problem with numbers: it
> seems python doesn't know any more how to count!
> I get only the down rounded integer
> 20/8 = 2
> 8/3=2
> I probably changed some option to round the numbers, but I don't
> remember how.
On Thu, Jan 6, 2011 at 2:49 PM, francesco
wrote:
> I'm pretty new in Python language. I have a problem with numbers: it
> seems python doesn't know any more how to count!
> I get only the down rounded integer
> 20/8 = 2
> 8/3=2
> I probably changed some option to round the numbers, but I don't
> r
I'm pretty new in Python language. I have a problem with numbers: it
seems python doesn't know any more how to count!
I get only the down rounded integer
20/8 = 2
8/3=2
I probably changed some option to round the numbers, but I don't
remember how.
Is there a way to reset the number of digits to def