Announcement

Collapse
No announcement yet.

Hex question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hex question

    Does 0xfd mean the same thing as &hfd?
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    #2
    I don't know what "&hfd" means, but "0xfd" represents the hex number 'fd', which is 253 in decimal. The '0x' is the prefix for hex in many languages, so if '&h' is the prefix for hex is some other language (which makes sense) then yes, they are the same.

    Comment


      #3
      Thanks Rocco. So if I needed to send 0xfd to the com port I could simply send chr(253)?
      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

      Comment


        #4
        yup

        Comment


          #5
          Various programming languages have different syntax conventions for denoting constants.

          the scheme 0x123456789ABCDEF is hexadecimal in C and other languages.
          &H123456789ABCDEF is used in others such as many assemblers and, as I recall, Visual Basic.

          The nice thing about standards is there are so many from which to choose (!)

          Comment

          Working...
          X