Re: Negative division bug?

2006-08-03 Thread Carsten Haese
On Thu, 2006-08-03 at 13:51, Michael Yanowitz wrote: > Hello: > > Just wondering if this is a bug, is this as designed, > or do I have to import math or something to make it correct: > >I was just screwing around. > and found: > >>> -1/100 > -1 > Shouldn't it be zero? > 1/100 returns 0 >

Re: Negative division bug?

2006-08-03 Thread casevh
>I was just screwing around. > and found: > >>> -1/100 > -1 > Shouldn't it be zero? > 1/100 returns 0 > but -1/ANY_POSITIVE_INTEGER_NUMBER > returns -1 > > >>> -10/3 > -4 > >It behaves correct for positive numbers, but for negative > integers it seems to subtract one from the expected

Negative division bug?

2006-08-03 Thread Michael Yanowitz
Hello: Just wondering if this is a bug, is this as designed, or do I have to import math or something to make it correct: I was just screwing around. and found: >>> -1/100 -1 Shouldn't it be zero? 1/100 returns 0 but -1/ANY_POSITIVE_INTEGER_NUMBER returns -1 >>> -10/3 -4 It behaves