GNU bug report logs - #15140
number->string doesn't accept the optional precision argument

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Göran Weinholt <goran@HIDDEN>; dated Tue, 20 Aug 2013 12:15:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 15140 <at> debbugs.gnu.org:


Received: (at 15140) by debbugs.gnu.org; 21 Jun 2016 09:35:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 21 05:35:10 2016
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>
To: =?utf-8?Q?G=C3=B6ran?= Weinholt <goran@HIDDEN>
Subject: Re: bug#15140: number->string doesn't accept the optional precision
 argument
References: <87d2p88t4s.fsf@HIDDEN>
Date: Tue, 21 Jun 2016 11:34:56 +0200
In-Reply-To: <87d2p88t4s.fsf@HIDDEN> (=?utf-8?Q?=22G=C3=B6r?=
 =?utf-8?Q?an?= 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-Debbugs-Envelope-To: 15140
Cc: 15140 <at> debbugs.gnu.org
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.




Information forwarded to bug-guile@HIDDEN:
bug#15140; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Aug 2013 12:14:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 20 08:14:26 2013
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>
To: bug-guile@HIDDEN
Subject: number->string doesn't accept the optional precision argument
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-Debbugs-Envelope-To: submit
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-----
--=-=-=--




Acknowledgement sent to Göran Weinholt <goran@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#15140; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
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.