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 18:20
Read: times


 
#139677 - Example
Responding to: ???'s previous message
The character '6' = 54 Decimal (36 hex)
The character '3' = 51 Decimal (33 hex)
The character '0' = 48 Decimal (30 hex)

Notice if we subtract '6' - '0' we get 6

One way is:
Number = 0
Number = Number + (( '6' - '0') * 16)
Number = Number + ( '3' - '0')

The details are let as an exercise for the student

Note Your Question is actually " How do I convert a hex ASCII string to a number".

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