emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] trunk r115868: Document behavior of (string-to-number "+@"


From: Paul Eggert
Subject: [Emacs-diffs] trunk r115868: Document behavior of (string-to-number "+@") (Bug#16293).
Date: Sun, 05 Jan 2014 01:24:44 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115868
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/16293
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Sat 2014-01-04 17:24:41 -0800
message:
  Document behavior of (string-to-number "+@") (Bug#16293).
  
  * strings.texi (String Conversion): Document behavior of
  string-to-number on invalid strings that begin with "+", too.
modified:
  doc/lispref/ChangeLog          changelog-20091113204419-o5vbwnq5f7feedwu-6155
  doc/lispref/strings.texi       
strings.texi-20091113204419-o5vbwnq5f7feedwu-6212
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2014-01-03 05:49:06 +0000
+++ b/doc/lispref/ChangeLog     2014-01-05 01:24:41 +0000
@@ -1,3 +1,9 @@
+2014-01-05  Paul Eggert  <address@hidden>
+
+       Document behavior of (string-to-number "+@") (Bug#16293).
+       * strings.texi (String Conversion): Document behavior of
+       string-to-number on invalid strings that begin with "+", too.
+
 2014-01-03  Chong Yidong  <address@hidden>
 
        * help.texi (Documentation, Accessing Documentation): Copyedits.

=== modified file 'doc/lispref/strings.texi'
--- a/doc/lispref/strings.texi  2014-01-01 07:43:34 +0000
+++ b/doc/lispref/strings.texi  2014-01-05 01:24:41 +0000
@@ -622,10 +622,8 @@
 The parsing skips spaces and tabs at the beginning of @var{string},
 then reads as much of @var{string} as it can interpret as a number in
 the given base.  (On some systems it ignores other whitespace at the
-beginning, not just spaces and tabs.)  If the first character after
-the ignored whitespace is neither a digit in the given base, nor a
-plus or minus sign, nor the leading dot of a floating point number,
-this function returns 0.
+beginning, not just spaces and tabs.)  If @var{string} cannot be
+interpreted as a number, this function returns 0.
 
 @example
 (string-to-number "256")


reply via email to

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