unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#15140: number->string doesn't accept the optional precision argument
@ 2013-08-20 12:05 Göran Weinholt
  2016-06-21  9:34 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Göran Weinholt @ 2013-08-20 12:05 UTC (permalink / raw)
  To: 15140

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

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.

-- 
Göran Weinholt <goran@weinholt.se>
"On your own and though you feel alone you are alive.
Don't you know it's just another day." -- You Are Alive, Fragma

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-21  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 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).