GNU bug report logs -
#15140
number->string doesn't accept the optional precision argument
Previous Next
To reply to this bug, email your comments to 15140 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#15140
; Package
guile
.
(Tue, 20 Aug 2013 12:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Göran Weinholt <goran <at> weinholt.se>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Tue, 20 Aug 2013 12:15:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <at> 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
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#15140
; Package
guile
.
(Tue, 21 Jun 2016 09:36:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 15140 <at> debbugs.gnu.org (full text, mbox):
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 <at> 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.
This bug report was last modified 8 years and 359 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.