From: Andy Wingo <wingo@pobox.com>
To: "Göran Weinholt" <goran@weinholt.se>
Cc: 15140@debbugs.gnu.org
Subject: bug#15140: number->string doesn't accept the optional precision argument
Date: Tue, 21 Jun 2016 11:34:56 +0200 [thread overview]
Message-ID: <87r3bq3mwv.fsf@pobox.com> (raw)
In-Reply-To: <87d2p88t4s.fsf@industria.weinholt.se> ("Göran Weinholt"'s message of "Tue, 20 Aug 2013 14:05:23 +0200")
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öran Weinholt <goran@weinholt.se> 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 (_ #:optional _)>
>
> The example should return "1.1|53".
>
> Tested with GNU Guile 2.0.9.71-8d5d04.
prev parent reply other threads:[~2016-06-21 9:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 12:05 bug#15140: number->string doesn't accept the optional precision argument Göran Weinholt
2016-06-21 9:34 ` Andy Wingo [this message]
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=87r3bq3mwv.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=15140@debbugs.gnu.org \
--cc=goran@weinholt.se \
/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).