unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#31593: Inconsistency with division of a real number by an integer
@ 2018-05-25 15:29 Tommi Höynälänmaa
  0 siblings, 0 replies; only message in thread
From: Tommi Höynälänmaa @ 2018-05-25 15:29 UTC (permalink / raw)
  To: 31593

[-- Attachment #1: Type: text/plain, Size: 353 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 543 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-25 15:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-25 15:29 bug#31593: Inconsistency with division of a real number by an integer Tommi Höynälänmaa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).