From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org, gnuist006@gmail.com
Subject: Re: How do I convert hex numbers to decimal ?
Date: Mon, 07 Sep 2009 05:56:22 +0300 [thread overview]
Message-ID: <83zl9731k9.fsf@gnu.org> (raw)
In-Reply-To: <1bfadfca-66ba-4aec-bb90-eb3a460c660c@l13g2000yqb.googlegroups.com>
> From: bolega <gnuist006@gmail.com>
> Date: Sun, 6 Sep 2009 18:03:57 -0700 (PDT)
> Cc: gnuist006@gmail.com
>
> 1) How do I convert hex numbers to decimal ?
I presume you mean for external representation purposes, in which case
just use the %d format. Otherwise, reading a hex number converts it
automatically, so you don't need to bother about the internal
representation.
> 2) How do I convert ascii to the character that it represents, short
> of a table ? Any function or simpler algorithm ?
Use the %d format again.
> 3) What are the variables
Type "C-h v read-quoted-char-radix RET" etc. and you will be shown the
documentation of the variable.
> and how to set their values ?
"M-x set-variable RET read-quoted-char-radix RET <value> RET"
> 4) How do i find the emacs lisp code for C-x = to see how it gives the
> ascii of the char at the cursor and then use to find the reverse, ie
> ascii to char ?
"C-k C-x =".
Sounds like you should read the basic parts of the Emacs manual and
the Elisp manual, before you start coding in Lisp.
next prev parent reply other threads:[~2009-09-07 2:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-07 1:03 How do I convert hex numbers to decimal ? bolega
2009-09-07 1:11 ` Janis Papanagnou
2009-09-07 14:44 ` Wang Lei
2009-09-07 2:56 ` Eli Zaretskii [this message]
[not found] ` <mailman.6147.1252292305.2239.help-gnu-emacs@gnu.org>
2009-09-07 5:52 ` bolega
2009-09-07 6:38 ` Teemu Likonen
2009-09-07 7:12 ` Pascal J. Bourguignon
2009-10-05 7:05 ` josephoswald+gg@gmail.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zl9731k9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gnuist006@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).