From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bill Schottstaedt Newsgroups: gmane.lisp.guile.bugs Subject: inexact integers in modulo etc Date: Mon, 15 Apr 2002 05:32:27 -0700 Sender: bug-guile-admin@gnu.org Message-ID: <200204151232.FAA21621@cmn14.stanford.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 (NeXT Mail 3.3 v148.2.1) Content-Type: text/plain X-Trace: main.gmane.org 1018873987 10839 127.0.0.1 (15 Apr 2002 12:33:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2002 12:33:07 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16x5fO-0002oi-00 for ; Mon, 15 Apr 2002 14:33:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16x5fP-0004TN-00; Mon, 15 Apr 2002 08:33:07 -0400 Original-Received: from cm-mail.stanford.edu ([171.64.197.135]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16x5et-0004LV-00 for ; Mon, 15 Apr 2002 08:32:35 -0400 Original-Received: from cmn14.stanford.edu (cmn14.stanford.edu [171.64.197.163]) by cm-mail.stanford.edu (8.11.6/8.11.6) with ESMTP id g3FCWUA32764 for ; Mon, 15 Apr 2002 05:32:30 -0700 Original-Received: (from bil@localhost) by cmn14.stanford.edu (8.9.3/8.9.3) id FAA21621 for bug-guile@gnu.org; Mon, 15 Apr 2002 05:32:29 -0700 (PDT) X-Nextstep-Mailer: Mail 3.3 [m68k] (Enhance 2.2p2) Original-Received: by NeXT.Mailer (1.148.2.1) Original-To: bug-guile@gnu.org Errors-To: bug-guile-admin@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.bugs:132 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:132 I guess this is not news, but just in case... Some Guile numerical primitives that should (could?) accept inexact integers (at least that's the way I read r5rs) do not. The remainder example below is taken from r5rs: guile> (version) "1.7.0" guile> (modulo 4.0 2) Backtrace: In standard input: 2: 0* [modulo 4.0 2] standard input:2:1: In procedure modulo in expression (modulo 4.0 2): standard input:2:1: Wrong type argument in position 1: 4.0 ABORT: (wrong-type-arg) guile> (remainder -13 -4.0) Backtrace: In standard input: 1: 0* [remainder -13 -4.0] standard input:1:1: In procedure remainder in expression (remainder -13 -4.0): standard input:1:1: Wrong type argument in position 2: -4.0 ABORT: (wrong-type-arg) Others are quotient, gcd, lcm, even?, odd? _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile