[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: integer exponentiation with negative exponent
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 19 May 2014 20:37:50 -0300
> 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.
I think integer division was well defined in C89. Modulus ('%') is the
one that was undefined until C99.
-- Roberto