Formatting issue sending data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexis4
    New Member
    • Dec 2009
    • 113

    Formatting issue sending data

    I receive a hex value and I need to convert it to a decimal number to pass on to another device.
    What does this mean? What is the difference between:

    Code:
    uint8 a = 0x10;
    Send(a);

    and

    Code:
    uint8 a = 16;
    Send(a);

    Do you mean that you must send the two digits separate? Otherwise this doesnt't make sence, hex or decimal, the character will always be a binary number from hardware point of view.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    There is no difference between those 2 code snippets, they do exactly the same thing.

    Comment

    Working...