lua-users home
lua-l archive

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


On Thu, Jun 9, 2016 at 10:30 AM, Philipp Janda <siffiejoe@gmx.net> wrote:
> Am 09.06.2016 um 16:04 schröbte Patrick Donnelly:
>>
>> On Thu, Jun 9, 2016 at 4:45 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>>
>>>
>>> v=(2*n+1)^2
>>>
>>
>> v = (2*n+1)<<1
>
>
> That would be equivalent to `(2*n+1)*2`.

Exactly, except my version returns an integer (the problem Dirk is
having is he wants an integer...).

-- 
Patrick Donnelly