Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Decimal to Hexadecimal

812 views
Skip to first unread message

Robert Kantor

unread,
Jan 30, 2002, 8:51:33 PM1/30/02
to
I just got my HP 49G and am trying to convert a decimal number to
hexadecimal. How would I go about doing this on the calculator?

The manual does not really give much direction.

Thanks,
Rob Kantor

Erwann ABALEA

unread,
Jan 31, 2002, 5:48:30 AM1/31/02
to
On 30 Jan 2002, Robert Kantor wrote:

> I just got my HP 49G and am trying to convert a decimal number to
> hexadecimal. How would I go about doing this on the calculator?

- enter your number like this:
#xxxxy
where xxxx is your number, and y is a lowercase letter indicating the
base of the number (d for decimal, h for hexadecimal, b for binary, o
for octal)
- change the current base: HEX, DEC, OCT, BIN
- look at the result on the stack

Note that you can omit the 'y' in your number if it designated the same
base as the current one.

Incidentally, there's surely a better program on www.hpcalc.org, I
remember having trying one for my HP48, which saved the current base, and
displayed my entered number in all the 4 possible bases on the screen.

> The manual does not really give much direction.

I'm not so sure... ;)

--
Erwann ABALEA
erw...@abalea.com
-----
<<Article 6.2 : L'abonné s'engage à conserver secret les éléments
constitutifs de son identification (nom d'utilisateur, mot de passe de
connexion, adresse e-mail, mot de passe de messagerie).
-+- FAI in : GNU - Mon adresse email est classée secret-défense -+-

Peter Geelhoed

unread,
Jan 31, 2002, 6:20:27 AM1/31/02
to
Robert Kantor wrote:

page 62 of the pocket guide:

"R->B converts a positive real to its binary integer equivalent"


--
This message was written with 100% recycled electrons

Pivo

Nick Karagiaouroglou

unread,
Jan 31, 2002, 7:39:01 AM1/31/02
to
r...@rjsl.com (Robert Kantor) wrote in message news:<855e5cbf.02013...@posting.google.com>...

Hi Rob!

First set hex mode by pressing HEX. You can get the command HEX for
example by pressing the keys [blue-shift], [CONVERT] (key 6), [F2],
[F1]. When HEX mode is on all binary integers are displayed in
hexadecimal. Now enter your number and then press R->B. You access the
command R->B by pressing the keys [blue-shift], [CONVERT] (key 6),
[F2], [F5].

Greetings,
Nick.

Wolfgang Rautenberg

unread,
Jan 31, 2002, 12:31:53 PM1/31/02
to
Erwann ABALEA wrote:
> > I just got my HP 49G and am trying to convert a decimal number to
> > hexadecimal. How would I go about doing this on the calculator?

> Incidentally, there's surely a better program on www.hpcalc.org, I


> remember having trying one for my HP48, which saved the current base, and
> displayed my entered number in all the 4 possible bases on the screen.

You mean probably the tool BACO (Base Conversion). It is slightly
obsolate on hpcalc.org since at the time it was written the powerful
display tools of ROM 19-6 were not yet available. Hence, load the
updated version of BACO from

ftp://ftp.math.fu-berlin.de/pub/usr/raut/HP49/tools/

It immediately displays a user binary in all modes HEX, DEC, OCT,
BIN in one screen. The base of the input binary can be specified.
All digits are shown even if the number of its binary digits is 64,
the maximum number for a user binary. User binaries are special
hexastrings. A system hexastring can be arbitrarily long ...

- Wolfgang

0 new messages