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

Full log


View this message in rfc822 format

From: Tommi Höynälänmaa <tommi.hoynalanmaa <at> gmail.com>
To: 31593 <at> debbugs.gnu.org
Subject: bug#31593: 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 22 days ago.

Previous Next


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