-1796254192 `div` 357566600 == 5 ??

Dylan Thurston dpt at lotus.bostoncoop.net
Thu Jun 27 18:36:32 EDT 2002


On Thu, Jun 27, 2002 at 05:43:37PM +0000, Marcin 'Qrczak' Kowalczyk wrote:
> Thu, 27 Jun 2002 11:44:29 -0400, Dylan Thurston <dpt at lotus.bostoncoop.net> pisze:
> 
> > Prelude> -1796254192 `div` 357566600
> > 5
> 
> Works for me in the cvs version.
> 
> 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)

--Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/glasgow-haskell-bugs/attachments/20020627/a7151375/attachment.bin


More information about the Glasgow-haskell-bugs mailing list