GNU bug report logs - #42012
Reference Manual and Docstring on number->string

Previous Next

Package: guile;

Reported by: sebastian.miele <at> gmail.com

Date: Mon, 22 Jun 2020 22:52:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Sebastian Miele <sebastian.miele <at> gmail.com>
To: 42012 <at> debbugs.gnu.org
Subject: bug#42012: Reference Manual and Docstring on number->string
Date: Tue, 23 Jun 2020 00:51:23 +0200
Guile 3.0.3. The reference manual and the docstring of number->string
say: "If N is inexact, a radix of 10 will be used." But that is not what
happens, e.g.,

  (let ((x 4.0)) (and (inexact? x) (number->string x 3)))

evaluates to "11.0" instead of #f or "4.0". Probably "if RADIX is not
supplied, a radix of 10 will be used" is meant.




This bug report was last modified 4 years and 356 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.