Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/23/07 15:18
Modified:
  05/23/07 15:22

Read: times


 
#139656 - Think about it!
Responding to: ???'s previous message
Sanjib Roy said:
Receive Text 63. so it is now in 63hex.

No, it isn't, is it?

It is just two characters - a '6' and a '3' - they could equally well represent a decimal number, or an octal number, etc...

but need to convert it hex code. 63 to 3f.

Do you understand how position value works?

In decimal, you have units, tens, hundreds, thousands, etc;
or, mathematically, 100, 101, 102, 103, etc

In hexadecimal, it's 160, 161, 162, 163, etc

So you have to multiply the value of each digit by its position value - and the value of the overall number is the sum of its digit values.

Update:
See: http://www.8052.com/forum/read.phtml?id=117487
and: http://www.8052.com/forum/read.phtml?id=114287


List of 18 messages in thread
TopicAuthorDate
Dec to Hex Converter.            01/01/70 00:00      
   What do you mean?            01/01/70 00:00      
      Dec to Hex Converter.            01/01/70 00:00      
         Think about it!            01/01/70 00:00      
            Dec to Hex Converter.            01/01/70 00:00      
               Think about it!            01/01/70 00:00      
   Try the code Library            01/01/70 00:00      
   Not understand            01/01/70 00:00      
      Gee Wiz            01/01/70 00:00      
         Olympic sprinting before crawling?            01/01/70 00:00      
            You are right, and ...            01/01/70 00:00      
               GREAT            01/01/70 00:00      
               Dechex            01/01/70 00:00      
                  I would call this...            01/01/70 00:00      
                  What is a "4m remote" ?            01/01/70 00:00      
      Back to basics            01/01/70 00:00      
      Example            01/01/70 00:00      
      Conversion            01/01/70 00:00      

Back to Subject List