Re: -1796254192 `div` 357566600 == 5 ??

2002-06-28 Thread Malcolm Wallace
Dylan Thurston [EMAIL PROTECTED] writes: Thanks for pointing this out; this seems to be another bug in ghc 5.02.2. According to the report, it seems unambiguous that, e.g., -5`div`2 should be -2, not -3. Yes,-5`div`2 == -(5`div`2) == -2 but (-5)`div`2 == -3 Ghc 5.02.2 has the

Re: -1796254192 `div` 357566600 == 5 ??

2002-06-27 Thread Marcin 'Qrczak' Kowalczyk
Thu, 27 Jun 2002 11:44:29 -0400, Dylan Thurston [EMAIL PROTECTED] pisze: Prelude -1796254192 `div` 357566600 5 Works for me in the cvs version. Prelude -1796254192 `div` 357566600 -5 -- __( Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/ \__/ ^^ QRCZAK

Re: -1796254192 `div` 357566600 == 5 ??

2002-06-27 Thread Alastair Reid
Prelude -1796254192 `div` 357566600 -5 Except that the answer should be -6. This is bizarre. What do you get for this one? Prelude -1796254192 `divMod` 357566600 (5,349145408) Can you add some parentheses to these expressions so we're sure what we're looking at. Using Hugs I get: