GNU bug report logs - #16293
24.3.50; doc of `string-to-number'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Sun, 29 Dec 2013 22:21:01 UTC

Severity: minor

Found in version 24.3.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 16293 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: jay.p.belanger <at> gmail.com, 16293 <at> debbugs.gnu.org
Subject: RE: bug#16293: 24.3.50; doc of `string-to-number'
Date: Sun, 29 Dec 2013 15:07:49 -0800 (PST)
> > Say what happens if STRING cannot successfully be parsed as a number:
> > the function raises an error.
> 
> When would it give an error, rather than 0?

If it never raises an error, then say explicitly that for any
string that cannot successfully be parsed as a number it returns 0.

(Cf. bug #16294, which was giving me the impression at first that
`string-to-number' was raising an error.)




This bug report was last modified 11 years and 141 days ago.

Previous Next


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