emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] feature/gnus-select f06346b 198/218: Clarify syntax of rad


From: Andrew G Cohen
Subject: [Emacs-diffs] feature/gnus-select f06346b 198/218: Clarify syntax of radixed integers
Date: Fri, 14 Dec 2018 03:35:43 -0500 (EST)

branch: feature/gnus-select
commit f06346b0d758edbb59b91fd195dc8f876c8e098e
Author: Paul Eggert <address@hidden>
Commit: Andrew G Cohen <address@hidden>

    Clarify syntax of radixed integers
    
    * doc/lispref/numbers.texi (Integer Basics): Specify what digits
    are allowed in radixed integers, and that there is no initial sign
    or final period.
---
 doc/lispref/numbers.texi | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi
index f1180cf..c2cb665 100644
--- a/doc/lispref/numbers.texi
+++ b/doc/lispref/numbers.texi
@@ -75,14 +75,17 @@ Emacs range is treated as a floating-point number.
 @cindex hex numbers
 @cindex octal numbers
 @cindex reading numbers in hex, octal, and binary
-  The syntax for integers in bases other than 10 uses @samp{#}
-followed by a letter that specifies the radix: @samp{b} for binary,
address@hidden for octal, @samp{x} for hex, or @address@hidden to
-specify radix @var{radix}.  Case is not significant for the letter
-that specifies the radix.  Thus, @address@hidden reads
+  The syntax for integers in bases other than 10 consists of @samp{#}
+followed by a radix indication followed by one or more digits.  The
+radix indications are @samp{b} for binary, @samp{o} for octal,
address@hidden for hex, and @address@hidden for radix @var{radix}.
+Thus, @address@hidden reads
 @var{integer} in binary, and @address@hidden@var{integer}} reads
 @var{integer} in radix @var{radix}.  Allowed values of @var{radix} run
-from 2 to 36.  For example:
+from 2 to 36, and allowed digits are the first @var{radix} characters
+taken from @address@hidden, @address@hidden
+Letter case is ignored and there is no initial sign or final period.
+For example:
 
 @example
 #b101100 @result{} 44



reply via email to

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