diff options
| author | Richard M. Stallman | 2001-08-12 21:20:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-08-12 21:20:19 +0000 |
| commit | ea626e87bb7f3c6969e25ae5236e4ab28bf30c8c (patch) | |
| tree | cb20b21147a7df1f4a2502915dc32e8a5ab2c0cf /lispref/strings.texi | |
| parent | 5785f550ab79aa26746a8cce2f23fc6c6d611d97 (diff) | |
| download | emacs-ea626e87bb7f3c6969e25ae5236e4ab28bf30c8c.tar.gz emacs-ea626e87bb7f3c6969e25ae5236e4ab28bf30c8c.zip | |
Minor cleanup.
Add example of scientific notation in string-to-number.
Diffstat (limited to 'lispref/strings.texi')
| -rw-r--r-- | lispref/strings.texi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lispref/strings.texi b/lispref/strings.texi index 970497871ea..b80dc244ee0 100644 --- a/lispref/strings.texi +++ b/lispref/strings.texi | |||
| @@ -442,8 +442,8 @@ portion) is less. | |||
| 442 | 442 | ||
| 443 | @defun assoc-ignore-case key alist | 443 | @defun assoc-ignore-case key alist |
| 444 | This function works like @code{assoc}, except that @var{key} must be a | 444 | This function works like @code{assoc}, except that @var{key} must be a |
| 445 | string, and comparison is done using @code{compare-strings}. | 445 | string, and comparison is done using @code{compare-strings}, ignoring |
| 446 | Case differences are ignored in this comparison. | 446 | case differences. @xref{Association Lists}. |
| 447 | @end defun | 447 | @end defun |
| 448 | 448 | ||
| 449 | @defun assoc-ignore-representation key alist | 449 | @defun assoc-ignore-representation key alist |
| @@ -554,6 +554,8 @@ floating point number, this function returns 0. | |||
| 554 | @result{} 0 | 554 | @result{} 0 |
| 555 | (string-to-number "-4.5") | 555 | (string-to-number "-4.5") |
| 556 | @result{} -4.5 | 556 | @result{} -4.5 |
| 557 | (string-to-number "1e5") | ||
| 558 | @result{} 100000.0 | ||
| 557 | @end example | 559 | @end example |
| 558 | 560 | ||
| 559 | @findex string-to-int | 561 | @findex string-to-int |