all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Converting strings of hexadecimal numbers to the respective bytes
@ 2009-04-06 22:22 florian
  2009-04-06 22:54 ` Juanma Barranquero
       [not found] ` <mailman.4740.1239058484.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 7+ messages in thread
From: florian @ 2009-04-06 22:22 UTC (permalink / raw)
  To: help-gnu-emacs


I was wondering if it is possible to convert a string, say '0a', which
represents a two-digit hexadecimal number, to the corresponding byte.
The solution does not seem far away (something like char-to-string),
but surprisingly, Elisp does not seem to deal much with hexadecimal
numbers.

What I mean is: if it were a three-digit decimal representation, you
could say

   (char-to-string (string-to-number "010"))

instead, but I don't seem to see such a possibility for a hexadecimal
number.

The question may be very dumb, but could Elisp do such a thing at all?

Thanks for any enlightenment ...

Florian


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-13 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 22:22 Converting strings of hexadecimal numbers to the respective bytes florian
2009-04-06 22:54 ` Juanma Barranquero
     [not found] ` <mailman.4740.1239058484.31690.help-gnu-emacs@gnu.org>
2009-04-09 10:05   ` Is X'ABCD' notation of general interest? (was: Converting strings of hexadecimal numbers to the respective bytes) florian
2009-04-09 12:24     ` Juanma Barranquero
2009-04-12 11:45     ` Is X'ABCD' notation of general interest? Thien-Thi Nguyen
2009-04-12 21:25       ` Nikolaj Schumacher
2009-04-13 14:12         ` Thien-Thi Nguyen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.