# Re: mental hex/decimal conversion?

*From*: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>*To*: <programmingblind@xxxxxxxxxxxxx>*Date*: Sun, 12 Apr 2009 09:10:23 +0100

`There is a way to convert using only addition and multiplying by 16
``itself...
`

Start with the left hand digit. Multiply by sixteen and add the next digit to the right. Multiply that sum by 16 and add the next digit to the right. Continue until you have added the rightmost digit. You have the answer. hth Martin

`----- Original Message -----`

`From: "Alex Hall" <mehgcap@xxxxxxx>`

To: <programmingblind@xxxxxxxxxxxxx> Sent: Saturday, April 11, 2009 11:57 PM Subject: e: mental hex/decimal conversion?

So there is no way to convert it simply, that is, without multiplying bypowers of 16? Oh well, it was worth a try, and thanks for the help.Have a great day, Alex----- Original Message ----- From: "Jerry Richer" <jerry@xxxxxxxxxxxxxxx To: <programmingblind@xxxxxxxxxxxxx Date sent: Sat, 11 Apr 2009 16:14:44 -0400 Subject: Re: mental hex/decimal conversion?OK, take your hex number.! Count the number of digits from right to left starting withzero, let'scall that number x ! Multiply that digit by 16 to the power x ! Set the result aside ! Move one digit to the right ! Multiply that digit by 16 to the power x-1 ! Set the result aside ! Move one digit to the right ! Multiply that digit by 16 to the power x-2 ! Set the result aside ! Continue until you get to the right most digit and finallymultiply it by16 to the power x-x or zero ! Now add all these set aside numbers together to get the base 10equivalentof your hex numberJerry__________ View the list's information and change your settings at http://www.freelists.org/list/programmingblind__________View the list's information and change your settings athttp://www.freelists.org/list/programmingblind

__________

`View the list's information and change your settings at`

`http://www.freelists.org/list/programmingblind`

**References**:**e: mental hex/decimal conversion?***From:*Alex Hall

## Other related posts:

- » mental hex/decimal conversion? - Alex Hall
- » Re: mental hex/decimal conversion? - Jerry Richer
- » Re: mental hex/decimal conversion? - Jerry Richer
- » Re: mental hex/decimal conversion? - Bob J.
- » Re: mental hex/decimal conversion? - Martin Slack