1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

(String Conversion) <string-to-number>: Document

that a float is returned for integers that are too large.
This commit is contained in:
Eli Zaretskii 2001-09-08 17:41:41 +00:00
parent 7cc80f0aef
commit 3afd8c2506

View File

@ -536,7 +536,9 @@ This function returns the numeric value of the characters in
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