unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Göran Weinholt" <goran@weinholt.se>
To: 14870@debbugs.gnu.org
Subject: bug#14870: gcd and lcm do not work on inexact integers
Date: Mon, 15 Jul 2013 15:00:53 +0200	[thread overview]
Message-ID: <87mwpo6kqi.fsf@industria.weinholt.se> (raw)

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

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@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

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2013-07-15 13:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 13:00 Göran Weinholt [this message]
2013-07-16 10:43 ` bug#14870: gcd and lcm do not work on inexact integers Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mwpo6kqi.fsf@industria.weinholt.se \
    --to=goran@weinholt.se \
    --cc=14870@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).