lua-users home
lua-l archive

Re: Integer division

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.

AltStyle によって変換されたページ (->オリジナル) /