GNU bug report logs - #31593
Inconsistency with division of a real number by an integer

Previous Next

Package: guile;

Reported by: Tommi Höynälänmaa <tommi.hoynalanmaa <at> gmail.com>

Date: Fri, 25 May 2018 15:30:02 UTC

Severity: normal

To reply to this bug, email your comments to 31593 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#31593; Package guile. (Fri, 25 May 2018 15:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tommi Höynälänmaa <tommi.hoynalanmaa <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Fri, 25 May 2018 15:30:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tommi Höynälänmaa <tommi.hoynalanmaa <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: Inconsistency with division of a real number by an integer
Date: Fri, 25 May 2018 18:29:43 +0300
[Message part 1 (text/plain, inline)]
The following code causes a numerical overflow exception to be raised:

---cut here---
(define myproc
  (lambda arguments
    (apply / arguments)))

(display (myproc 5.5 0))
---cut-here---

However, expression (/ 5.5 0) returns +inf.0.
Obviously one of these is wrong.

I have checked this with Guile 2.2.3.

     - Tommi Höynälänmaa
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 20 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.