GNU logs - #15140, boring messages


Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#15140: number->string doesn't accept the optional precision argument
Resent-From: =?UTF-8?Q?G=C3=B6ran?= Weinholt <goran@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Tue, 20 Aug 2013 12:15:01 +0000
Resent-Message-ID: <handler.15140.B.137700086615533 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 15140
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: 15140 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guile@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.137700086615533
          (code B ref -1); Tue, 20 Aug 2013 12:15:01 +0000
Received: (at submit) by debbugs.gnu.org; 20 Aug 2013 12:14:26 +0000
Received: from localhost ([127.0.0.1]:42262 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VBkpN-00042T-R7
	for submit <at> debbugs.gnu.org; Tue, 20 Aug 2013 08:14:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:59578)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <goran@HIDDEN>) id 1VBkpK-00042K-Nw
 for submit <at> debbugs.gnu.org; Tue, 20 Aug 2013 08:14:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <goran@HIDDEN>) id 1VBkpJ-0001Uu-E5
 for submit <at> debbugs.gnu.org; Tue, 20 Aug 2013 08:14:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_20,T_DKIM_INVALID,
 USER_IN_WHITELIST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:37370)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <goran@HIDDEN>) id 1VBkpJ-0001Uq-Ay
 for submit <at> debbugs.gnu.org; Tue, 20 Aug 2013 08:14:21 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:33038)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <goran@HIDDEN>) id 1VBkpG-0005Ru-Ss
 for bug-guile@HIDDEN; Tue, 20 Aug 2013 08:14:21 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <goran@HIDDEN>) id 1VBkpA-0001Sk-VP
 for bug-guile@HIDDEN; Tue, 20 Aug 2013 08:14:18 -0400
Received: from iustitia.weinholt.se ([2a02:28f0:0:a::7dce:e5a8]:40122)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <goran@HIDDEN>) id 1VBkpA-0001QX-K3
 for bug-guile@HIDDEN; Tue, 20 Aug 2013 08:14:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=weinholt.se;
 s=iustitia2012; 
 h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From;
 bh=H5MapVlm9d5dC9d2ZG6hbJkxt12hrm+F4uD2KvlAUNU=; 
 b=gfV1LxqdQfK2Q/ctdYAur0OWvsBOwro+SjF3qK14lVgYcRBJhHr5Zru8m6jv/iReNlMNu7OkF3kskf+dKxCjEgd9l39P1P5djChBYhsC3ZKuneb8yiZvrEHh/IYbE0tKpCQucvDpyKKy4S3okjK615yt4O1XAZfXEDxUC9T7gfcfbF3U1eTwsSwTsvBUkFdmeO6DqQfdd4fxGBTXKuOraUlWvLhvteWU5wHJEf5scogtVkFU3JMXrjM/WqF9GpeORNNrhjEiAB4y9jZMI5awDozqxfJwqa5UoECRcitsf4v+UyF7OlGhDZ4TSiscAH9N6o26rWpC+IxO3Kd8O+ulNw==;
Received: from uucp by iustitia.weinholt.se with local-bsmtp (Exim 4.72)
 (envelope-from <goran@HIDDEN>)
 id 1VBkp2-0003Cp-Se; Tue, 20 Aug 2013 14:14:04 +0200
Received: from weinholt by industria with local (Exim 4.80)
 (envelope-from <goran@HIDDEN>)
 id 1VBkgj-00027P-V3; Tue, 20 Aug 2013 14:05:29 +0200
X-Hashcash: 1:20:130820:bug-guile@HIDDEN::xKfiF0B6EhS0kiLn:000000000000000000000000000000000000000000001gLd
From: =?UTF-8?Q?G=C3=B6ran?= Weinholt <goran@HIDDEN>
Date: Tue, 20 Aug 2013 14:05:23 +0200
Message-ID: <87d2p88t4s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.3 (---)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello schemers,

the number->string procedure from (rnrs) should accept the optional
precision argument, but does not:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (number->string 1.1 10 53)
;;; <stdin>:2:0: warning: possibly wrong number of arguments to `number->st=
ring'
ERROR: In procedure number->string:
ERROR: Wrong number of arguments to #<procedure number->string (_ #:optiona=
l _)>

The example should return "1.1|53".

Tested with GNU Guile 2.0.9.71-8d5d04.

=2D-=20
G=C3=B6ran Weinholt <goran@HIDDEN>
"On your own and though you feel alone you are alive.
Don't you know it's just another day." -- You Are Alive, Fragma

--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJSE1uEAAoJEOM+YaLpuMOi4N4P/2cKoNkIbE3kpcd7YG9lUBUQ
q2IO9VkYI8ylZmIQkdEgoFsW8e30ENpeMGeaNl24Pma+lO2yP4kNoVzzayV+epth
GoiNWBJVhvFp4OowZlP03gktAkC7UK+cmsUn8CL2e296njeU134MvT+DKKyoptf7
8n6hrbhPq84/P/qe0TbmcjVR2vmI1ZGpqlKBJxWzsPrnPj3gbZVg2ucKsHFmDKXO
vCaVK8ghezl95CDiMYt8K4iHZIbEhyva4b7UlgjkyqEpm47lKwjE1ji0JDn85lY5
zCNFfrsnWi/Zt2ooN4/d4aR9JdXwOu0Hqg9nr22nNTIJnxe8/VIBgwbLXvqlXFsp
46oaL5IKX7ibNZuWXURoQVtlGGNLshbGnsSPvrdBYFLvnhzIYLf3J7VDTwq619ya
UTY4LReeaL0rKOPaS2rPIGNFAsTFs91e5R6tQeh3OiJjPltPRXg5bF6T2B5H4roB
qCY/iaHa3mwoD9k/j53Ino9azK41ZKYCc6KvCjkdn5eLwpjvZqEDe9Z2LODYwO/c
WUx4viCzWtWtcNq+1dVa727AY7TZuQux9EIvLopCxjCxb7UCG+LqQbyMBFnwA437
DYK6Kv9jsztdaRg7Y4SW4a386DntSUwbS8qj6I+kj7+G0laleBNtQm7rh3aNLjRS
QFRuhnn3gKrV8GphL1p7
=cgv3
-----END PGP SIGNATURE-----
--=-=-=--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?G=C3=B6ran?= Weinholt <goran@HIDDEN>
Subject: bug#15140: Acknowledgement (number->string doesn't accept the
 optional precision argument)
Message-ID: <handler.15140.B.137700086615533.ack <at> debbugs.gnu.org>
References: <87d2p88t4s.fsf@HIDDEN>
X-Gnu-PR-Message: ack 15140
X-Gnu-PR-Package: guile
Reply-To: 15140 <at> debbugs.gnu.org
Date: Tue, 20 Aug 2013 12:15:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guile@HIDDEN

If you wish to submit further information on this problem, please
send it to 15140 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
15140: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15140
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#15140: number->string doesn't accept the optional precision argument
Resent-From: Andy Wingo <wingo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Tue, 21 Jun 2016 09:36:01 +0000
Resent-Message-ID: <handler.15140.B15140.146650171016647 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 15140
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?G=C3=B6ran?= Weinholt <goran@HIDDEN>
Cc: 15140 <at> debbugs.gnu.org
Received: via spool by 15140-submit <at> debbugs.gnu.org id=B15140.146650171016647
          (code B ref 15140); Tue, 21 Jun 2016 09:36:01 +0000
Received: (at 15140) by debbugs.gnu.org; 21 Jun 2016 09:35:10 +0000
Received: from localhost ([127.0.0.1]:48560 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bFI5N-0004KR-TZ
	for submit <at> debbugs.gnu.org; Tue, 21 Jun 2016 05:35:10 -0400
Received: from pb-sasl2.pobox.com ([64.147.108.67]:63017
 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <wingo@HIDDEN>) id 1bFI5L-0004KH-8Y
 for 15140 <at> debbugs.gnu.org; Tue, 21 Jun 2016 05:35:07 -0400
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1])
 by pb-sasl2.pobox.com (Postfix) with ESMTP id F035621B65;
 Tue, 21 Jun 2016 05:35:05 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type:content-transfer-encoding; s=sasl; bh=8OjgdSQzYj9r
 DQ5XL7TSYydI7Pc=; b=PS3BBLe7YS6e2ecpq7TyzkaQvq8K2uOvqWZ2TjGx3QSY
 Ptia8E1Z7OBe5slAXW9utWaCDDF1jBLyij0ml7G3hvtHToi+QfAYzh2nvUdKsyqB
 0dm2NIj3FsPXAnRAe+WcjvE3LaYPE8X50ibRxTcEkmJFNsu0364NpWKgDfP5Vok=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc
 :subject:references:date:in-reply-to:message-id:mime-version
 :content-type:content-transfer-encoding; q=dns; s=sasl; b=CZC29l
 2zLXm53VeXovn8tA4J3JldjyOtQdxwZbVXE7AXAlPnwzpAdqBCnoOiYawY69W7fx
 alOMxwvveqaAIW1ZMgTaGLwdGJrXNUksNolmQ9vviMBXXcGXEMh8fQlZ6dQCCEp4
 Km3vRRTyrcj6Aktbdjf4yILs4pEoWVFm1YYxg=
Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1])
 by pb-sasl2.pobox.com (Postfix) with ESMTP id E820A21B64;
 Tue, 21 Jun 2016 05:35:05 -0400 (EDT)
Received: from clucks (unknown [88.160.190.192])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 0AC4621B62;
 Tue, 21 Jun 2016 05:35:03 -0400 (EDT)
From: Andy Wingo <wingo@HIDDEN>
References: <87d2p88t4s.fsf@HIDDEN>
Date: Tue, 21 Jun 2016 11:34:56 +0200
In-Reply-To: <87d2p88t4s.fsf@HIDDEN> ("=?UTF-8?Q?G=C3=B6ran?= Weinholt"'s
 message of "Tue, 20 Aug 2013 14:05:23 +0200")
Message-ID: <87r3bq3mwv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Pobox-Relay-ID: 6EFF11D2-3793-11E6-8D73-28A6F1301B6D-02397024!pb-sasl2.pobox.com
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)

Hi :)

Ignorant question: what is the precision argument good for?  FWIW
Guile's inexact reals are all 64-bit doubles.

Just curious :)

Andy

On Tue 20 Aug 2013 14:05, G=C3=B6ran Weinholt <goran@HIDDEN> writes:

> Hello schemers,
>
> the number->string procedure from (rnrs) should accept the optional
> precision argument, but does not:
>
> scheme@(guile-user)> (import (rnrs))
> scheme@(guile-user)> (number->string 1.1 10 53)
> ;;; <stdin>:2:0: warning: possibly wrong number of arguments to `number->=
string'
> ERROR: In procedure number->string:
> ERROR: Wrong number of arguments to #<procedure number->string (_ #:optio=
nal _)>
>
> The example should return "1.1|53".
>
> Tested with GNU Guile 2.0.9.71-8d5d04.





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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