HEX <-> Decimal


I need for the hp41 a routine of conversion of Hex <-> Decimal very small.
Thank you.


See if one of these will meet your needs:





Edited: 11 Nov 2005, 6:37 p.m.


The best solution for my needs. I thank all.



Hi, Gileno;

(I was typing it in while Randy was faster... I'll let my answer here, though.)

I have a converting routine that uses X-Functions, would that be a problem? Unfortunatyely I do not have it right now. As soon as I get back home I'll post the listing.

Maybe you already have it, but there is a converting program in the HP41 standard pack. I actually think it is too long and somehow odd, but maybe it can help you.

I'll be back in a couple of hours, O.K.?



Edited: 11 Nov 2005, 6:34 p.m.


Hi, Gileno;

sorry taking too long.

Please, have a look at this set of programs and you'll probably find something usefull. HEX to DEC and DEC to HEX listings are in page 14. You can use only the H-D and D-H listing, that is 73 steps long (it is surely more than 100 bytes long). ALENG, AROT, ATOX and XTOA are from the X-Functions module.

Hope it helps.

Luiz (Brasil)


The Advantage module has the base conversions, and work just about as fast as the LCD can respond.


Garth posted,

The Advantage module has the base conversions, and work just about as fast as the LCD can respond.

True, but the hexadecimal numbers are limited to unsigned integers up to 32 bits. This differs from most other implementations of integer base conversions on calculators, which assume 2's-complement signed integers of word size 32 bits, 36 bits, or 40 bits.

See my base-conversion thread in the Archives. NOTE: The 41C Advantage module is not covered, because it was not a built-in capability.

-- KS

Edited: 12 Nov 2005, 2:45 a.m.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Binary versus Decimal prefixes bill platt 22 5,284 04-27-2013, 11:22 AM
Last Post: Walter B
  Decimal/Binary Conversions for the HP 39gii - 3/16/2013 Eddie W. Shore 0 933 03-16-2013, 04:30 PM
Last Post: Eddie W. Shore
  33s Decimal Point Matt Agajanian 4 1,797 11-06-2012, 09:20 PM
Last Post: Matt Agajanian
  Obtaining More Decimal Digits (50g) Eddie W. Shore 3 1,560 09-13-2012, 05:38 PM
Last Post: Gilles Carpentier
  HP-35A/21 D.MS<-->Decimal degrees routines Matt Agajanian 9 2,916 03-29-2012, 11:03 AM
Last Post: Matt Agajanian
  WP34S Build 874 Possible HEX entry bug? M. Joury 9 2,425 05-12-2011, 03:04 PM
Last Post: M. Joury
  HP 41CX Decimal Point restore Joseph Banki 5 1,541 04-25-2011, 12:38 PM
Last Post: C.Ret
  Decimal point before an operation Jim Yohe 5 1,765 01-30-2011, 06:32 AM
Last Post: Chris Randle (UK)
  Decimal Key is Loose Anthony (USA) 1 959 01-29-2011, 09:51 AM
Last Post: designnut
  HP 27s - How to set # decimal places displayed? M Tulloch 4 1,526 12-21-2010, 07:23 PM
Last Post: bill platt

Forum Jump: