lua-users home
lua-l archive

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


On May 19, 2014 5:26 PM, "Doug Currie" <doug.currie@gmail.com> wrote:
>>
>>
>> Btw., does anyone know who invented integer division as defined in C in the first place? Is it used outside of programming?
>
>
> Euclid?
>
> http://en.wikipedia.org/wiki/Euclidean_division

I'm not *that* old, but I think the first reaction of some of us was "integer division in C is defined?"

This is clearly the result of intentionally forgetting C99's choice of how to deal with negative numbers.