emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/doc/misc calc.texi


From: Jay Belanger
Subject: [Emacs-diffs] emacs/doc/misc calc.texi
Date: Tue, 15 Dec 2009 00:58:09 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Jay Belanger <jpb>      09/12/15 00:58:09

Modified files:
        doc/misc       : calc.texi 

Log message:
        (Radix Modes): Clarify two's complement notation.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/doc/misc/calc.texi?cvsroot=emacs&r1=1.44&r2=1.45

Patches:
Index: calc.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/doc/misc/calc.texi,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- calc.texi   22 Nov 2009 02:19:03 -0000      1.44
+++ calc.texi   15 Dec 2009 00:58:08 -0000      1.45
@@ -13173,34 +13173,36 @@
 in the current radix.  (Larger integers will still be displayed in their
 entirety.) 
 
-
-Calc can display @expr{w}-bit integers using two's complement notation
-and binary, octal or hexadecimal display radix with the commands
address@hidden d 2}, @kbd{C-u d 8} or @kbd{C-u d 6}, respectively.  In this
-case a negative word size might be appropriate (@pxref{Binary Functions}).
-The integers in the symmetric interval from
address@hidden Two's complements
+With the binary, octal and hexadecimal display modes, Calc can
+display @expr{w}-bit integers using two's complement notation.  These
+versions of the display radices are selected with the key sequences
address@hidden d 2}, @kbd{C-u d 8} and @kbd{C-u d 6}, respectively.
+In these cases a negative word size might be appropriate
+(@pxref{Binary Functions}). In two's complement notation, the integers 
+in the (nearly) symmetric interval from
 @texline @math{-2^{w-1}}
 @infoline @expr{-2^(w-1)}
 to
 @texline @math{2^{w-1}-1}
 @infoline @expr{2^(w-1)-1}
-will be represented by using the integers from @expr{0} to @expr{2^w};
+are represented by the integers from @expr{0} to @expr{2^w-1}:
 the integers from @expr{0} to
 @texline @math{2^{w-1}-1}
 @infoline @expr{2^(w-1)-1}
-will be represented by themselves and the integers
-from
+are represented by themselves and the integers from
 @texline @math{-2^{w-1}}
 @infoline @expr{-2^(w-1)}
-to @expr{-1} will have @expr{2^w} added to them, so they will be
-represented by the integers from
+to @expr{-1} are represented by the integers from 
 @texline @math{2^{w-1}}
 @infoline @expr{2^(w-1)}
-to @expr{2^w}.  Calc will represent a twos-complement integer
-by the radix (either @expr{2}, @expr{8} or @expr{16}), two @kbd{#}
-symbols, and then the digits (including any necessary leading zeros to
-include all @expr{w} bits).  Numbers that are not displayed in 
-twos-complement notation (i.e., that aren't integers from
+to @expr{2^w-1} (the integer @expr{k} is represented by @expr{k+2^w}).
+Calc will display a two's complement integer by the radix (either
address@hidden, @expr{8} or @expr{16}), two @kbd{#} symbols, and then its
+representation (including any leading zeros necessary to include all
address@hidden bits).  In a two's complement display mode, numbers that
+are not displayed in two's complement notation (i.e., that aren't
+integers from  
 @texline @math{-2^{w-1}}
 @infoline @expr{-2^(w-1)}
 to




reply via email to

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