changeset 39196:4e9db7a710f8

(String Conversion) <string-to-number>: Document that a float is returned for integers that are too large.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 08 Sep 2001 17:41:41 +0000
parents 004939041c32
children f56fa34012c0
files lispref/strings.texi
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/strings.texi	Sat Sep 08 14:30:12 2001 +0000
+++ b/lispref/strings.texi	Sat Sep 08 17:41:41 2001 +0000
@@ -536,7 +536,9 @@
 in that base.  If @var{base} is @code{nil}, then base ten is used.
 Floating point conversion always uses base ten; we have not implemented
 other radices for floating point numbers, because that would be much
-more work and does not seem useful.
+more work and does not seem useful.  If @var{string} looks like an
+integer but its value is too large to fit into a Lisp integer,
+@code{string-to-number} returns a floating point result.
 
 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.  (On some