GNU bug report logs - #14870
gcd and lcm do not work on inexact integers

Previous Next

Package: guile;

Reported by: Göran Weinholt <goran <at> weinholt.se>

Date: Mon, 15 Jul 2013 13:15:01 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Göran Weinholt <goran <at> weinholt.se>
Subject: bug#14870: closed (Re: bug#14870: gcd and lcm do not work on
 inexact integers)
Date: Tue, 16 Jul 2013 10:44:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#14870: gcd and lcm do not work on inexact integers

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 14870 <at> debbugs.gnu.org.

-- 
14870: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14870
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mark H Weaver <mhw <at> netris.org>
To: Göran Weinholt <goran <at> weinholt.se>
Cc: 14870-done <at> debbugs.gnu.org
Subject: Re: bug#14870: gcd and lcm do not work on inexact integers
Date: Tue, 16 Jul 2013 06:43:27 -0400
Göran Weinholt <goran <at> weinholt.se> writes:
> the gcd and lcm procedures from (rnrs) do not work on inexact integers:

Fixed in 3bbca1f7237c0e9d9419eaea8f274c9cd7314f04.

    Thanks!
      Mark

[Message part 3 (message/rfc822, inline)]
From: Göran Weinholt <goran <at> weinholt.se>
To: bug-guile <at> gnu.org
Subject: gcd and lcm do not work on inexact integers
Date: Mon, 15 Jul 2013 15:00:53 +0200
[Message part 4 (text/plain, inline)]
Hello schemers,

the gcd and lcm procedures from (rnrs) do not work on inexact integers:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (lcm 32.0 -36)
ERROR: In procedure lcm:
ERROR: In procedure lcm: Wrong type argument in position 1: 32.0

This is an example from r6rs. Tested with Guile 2.0.9.22-7e816-dirty.

Regards,

-- 
Göran Weinholt <goran <at> weinholt.se>
"Did the writer not know that the use of the term 'the real world' is usually
interpreted as a symptom of rabid anti-intellectualism, or did he not mind?"
-- prof.dr. Edsger W. Dijkstra
[Message part 5 (application/pgp-signature, inline)]

This bug report was last modified 12 years and 8 days ago.

Previous Next


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