[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Bug] math.mod behaves differently than the modulus operator.
- From: "Tom Barta" <tbarta@...>
- Date: Sat, 26 Jan 2008 17:24:33 -0600
On Jan 26, 2008 4:29 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> Please don't cry BUG when you see something you don't expect.
Out of curiosity, is there any explicit reason for math.mod() behaving
differently than the modulus operator (%)? It seems counterintuitive
that they behave differently (despite the lack of a formal guarantee
by the manual), but maybe I'm overlooking some case where the
distinction is worthwhile.
--
Tom