[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Integer division
- From: Xavier Wang <weasley.wx@...>
- Date: Thu, 15 Nov 2012 02:22:39 +0800
Yes I like the idea of '//'. :-)
2012/11/15 Elias Barrionovo <elias.tandel@gmail.com>:
> On Wed, Nov 14, 2012 at 2:11 PM, Philippe Lhoste <PhiLho@gmx.net> wrote:
>> // is already used in some languages for integer division. At least Visual
>> Basic, IIRC...
>
> So does Python 3.x, which means many people would already be
> comfortable with '//' meaning integer division.
>
>>>> 3 / 2
> 1. 5
>>>> 3 // 2
> 1
>
>
> --
> NI!
>
--
regards,
Xavier Wang.