emacs-devel
[Top][All Lists]
Advanced

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

Re: C-x C-e on numbers


From: Andreas Schwab
Subject: Re: C-x C-e on numbers
Date: Thu, 04 Dec 2014 17:27:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

address@hidden (Alfred M. Szmidt) writes:

> Currently, when evaluating a number, emacs will print the decimal,
> octal, hexadecimal, and charachter of said number.
>
>   42 C-x C-e ==> 42 (#o52, #x2a, ?*)
>
> It would be useful, if the output would also include the binary
> representation of the number.  Or at least somehow enable such
> behaviour.  I.e., 
>
>   42 C-x C-e ==> 42 (#b101010, #o52, #x2a, ?*)

Since there is no builtin way to format numbers in binary this requires
some work.  Also, the binary representation of a number can get quite
long.  IMHO it doesn't add much value over the octal representation.

Andreas.

-- 
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



reply via email to

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