bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15140: number->string doesn't accept the optional precision argument


From: Andy Wingo
Subject: bug#15140: number->string doesn't accept the optional precision argument
Date: Tue, 21 Jun 2016 11:34:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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 <address@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 (_ #:optional 
> _)>
>
> The example should return "1.1|53".
>
> Tested with GNU Guile 2.0.9.71-8d5d04.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]