chrisredfield93 Posted March 12, 2010 Posted March 12, 2010 hi all i wondering how do you work hex out? i know there is a feature in microsft calculator but im looking for a non calulator method thanks
SYNACK Posted March 12, 2010 Posted March 12, 2010 BAC10= 11 * 16 *16 *16*16 +10 *16*16*16 +12*16*16 +1*16*16 +0*16 =Result in decimal This is the long way of doing it though, cant remember the shorter way A=10 B=11 etc for above. 1
chrisredfield93 Posted March 12, 2010 Author Posted March 12, 2010 BAC10= 11 * 16 *16 *16*16 +10 *16*16*16 +12*16*16 +1*16*16 +0*16 =Result in decimal This is the long way of doing it though, cant remember the shorter way A=10 B=11 etc for above. Thanks that what i was looking for i couldn't think top of my head cheers synack
SYNACK Posted March 13, 2010 Posted March 13, 2010 Eeek, just realized that I messed that up a little. I added an extra *16 to the last two lines that should not be there. That will teach me to count correctly next time it should be: BAC10= 11 * 16 *16 *16*16 +10 *16*16*16 +12*16*16 +1*16 +0 =Result in decimal Sorry about that.
webman Posted March 15, 2010 Posted March 15, 2010 After years of programming in hex I can remember the decimal and ASCII equivalent of everything from 32 to 255, and all the key memory locations in hex of the Sinclair Spectrum! Geek
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now