User Tag List

Results 1 to 3 of 3

Thread: Hex to dec and dec to hex

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    USA
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hex to dec and dec to hex

    Quick question, how would I turn a hex string into a dec number?
    ex) FF into 255
    Also, I know that mmf can turn a number into a hex string, but how would I do so without having an "0x" at the beginning?
    ex) 255 into FF

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Hex to dec and dec to hex

    Hex -> Dec

    Val("0x"+Hex)

    Dec -> Hex

    Right$(Hex$(Dec),Length(Hex$(Dec))-2)

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    USA
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hex to dec and dec to hex

    Wow, thank you. I didnt know that val could convert hex to dec.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •