diff options
| author | Eli Zaretskii | 2001-09-08 17:41:41 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-09-08 17:41:41 +0000 |
| commit | 3afd8c2506bbc99fc62c2363e4881319018e5a8a (patch) | |
| tree | 2aadfb69fcb722bcc7a636e07351ae96fef6e21b | |
| parent | 7cc80f0aefd4cbdd6fd0e827b67216c68e08b2ef (diff) | |
| download | emacs-3afd8c2506bbc99fc62c2363e4881319018e5a8a.tar.gz emacs-3afd8c2506bbc99fc62c2363e4881319018e5a8a.zip | |
(String Conversion) <string-to-number>: Document
that a float is returned for integers that are too large.
| -rw-r--r-- | lispref/strings.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi index b80dc244ee0..f35f94b2bc4 100644 --- a/lispref/strings.texi +++ b/lispref/strings.texi | |||
| @@ -536,7 +536,9 @@ This function returns the numeric value of the characters in | |||
| 536 | in that base. If @var{base} is @code{nil}, then base ten is used. | 536 | in that base. If @var{base} is @code{nil}, then base ten is used. |
| 537 | Floating point conversion always uses base ten; we have not implemented | 537 | Floating point conversion always uses base ten; we have not implemented |
| 538 | other radices for floating point numbers, because that would be much | 538 | other radices for floating point numbers, because that would be much |
| 539 | more work and does not seem useful. | 539 | more work and does not seem useful. If @var{string} looks like an |
| 540 | integer but its value is too large to fit into a Lisp integer, | ||
| 541 | @code{string-to-number} returns a floating point result. | ||
| 540 | 542 | ||
| 541 | The parsing skips spaces and tabs at the beginning of @var{string}, then | 543 | The parsing skips spaces and tabs at the beginning of @var{string}, then |
| 542 | reads as much of @var{string} as it can interpret as a number. (On some | 544 | reads as much of @var{string} as it can interpret as a number. (On some |