User Tag List

Results 1 to 7 of 7

Thread: Hexidecimal->Decimal

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hexidecimal->Decimal

    How do I convert a hexidecimal number to a decimal number?

  2. #2
    No Products Registered

    Join Date
    Aug 2006
    Posts
    59
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexidecimal->Decimal

    What's a hexidecimal number? :P

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexidecimal->Decimal

    I'm not sure if that's a genuine question or just being rude about the spelling. That's my job.

    You could do this just by going backwards through the string and multiplying each figure by the right multiple of 16, but I'm sure that there's an extension that can do this with a lot less hassle... I'm not sure which one it is, though.

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexidecimal->Decimal

    Make sure that the hexadecimal value is in an mmf string beginning with 0x... ("0xFD8C50")... then simply use val(string) or int(string)... can't remember which one xD

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexidecimal->Decimal

    Yay! That works! [grin]

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexidecimal->Decimal

    Great
    To convert a decimal value to hex, simply use the hex function... hex$(89)

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexidecimal->Decimal

    Thanks!

Similar Threads

  1. Decimal places?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd October 2011, 08:07 PM
  2. Possible for Slope as a decimal?
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th December 2010, 01:30 AM
  3. hex to decimal??
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th June 2009, 03:05 PM
  4. Decimal Number bug
    By Cocodrilo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th April 2008, 12:48 PM
  5. Decimal numbers
    By Muz in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 25th February 2008, 04:58 PM

Posting Permissions

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