User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: convert binary to exadecimal

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    convert binary to exadecimal

    Hi,
    I want to have the status of 150 banners (on / off) in hexadecimal format, but do not know the method with MMF2

    I found this solution:
    I wrote the status of these banners on a "string" es:
    "1110000000"
    in this case the first three banners are ON but this is a string for 10 banner and is simple.

    the problem is when I have to store the state of 150 banners because the string is 150 characters.

    How can I do to have the status of 150 es variables of these banners 0/1 with a size of a few characters

    a binary value like this: 1111111100 from as a result esadecomale = 3fc

    How can I get this formula with MMF 2?
    Thanks

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Maybe it is difficult to explain this.
    I have the status value of these banners on a list:
    banner_1 = 1
    banner_1 = 1
    banner_1 = 0
    banner_1 = 0
    ...
    banner_150 = 1

    I imported a string of all the states in this way:
    "1100 .................................................. ............................... 1 "

    A string of 150 characters.
    Is there a simpler solution? that uses a hex code? have a simple solution to have a string or value of a few characters?

  3. #3
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Put it in an array, and loop through the Array?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    a binary number with 150 digits is way too large to convert. Remember that binary conversion is done by doubling the value 1 each time you move one digit to the left. If you try to double the number one 150 times you're going to be exceeding the capability of the hardware.

    that being said, you could break the string of 150 characters into 5 groups of 30 and then easily convert each of them into hex shorthand.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Perry View Post
    Put it in an array, and loop through the Array?
    Yes

    thanks tuna, I've already shared this string into 5 parts , I have created five interfaces and each interface relay switch on 30 . I made a very interesting software that allows you to write a list of the ' hours, minutes , seconds and hundredths and the status of all the banner to switch the relays. Turn on the banner at the appointed time and when the time reaches you, turn on the banner set. unfortunately, I have to take a single line for command and I want to find a system other than a string that is 150 characters. use hexadecimal ?


    This is a simple example. I used the variable object, but I have to use an ' array because the variables are just over 20 and I have to use a bigger structure . I am convinced that there is an easier way to type in a list of 150 state variables 0/1 .
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    are you saying you just need to check the string to see if the banner is on or off? I guess i'm not fully understanding what the ultimate goal is.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    My objective is to have a simplification of that string. That is just a simplified example. I would like to have a status of 150 banner inside a string, but that it has a more simplified code.
    One solution could be this:

    __________X1__________X2____________X3_______X4___ ________X5___________X6

    Y0 "00:00:00:00"____1011..X_______1011..X____XXXXX..X ___XXXXX.XX_____XXXXX.XXX
    Y1 "00:00:06:25"____1000..X_______1010..X____XXXXX..X ___XXXXX.XX_____XXXXX.XXX
    Y3...

  8. #8
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,421
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    almost want to say, just use an array
    and fill it from 0..149 with 1 or 0

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah Perry, I'm thinking the same thing. I don't understand what the goal is to use Hexadecimal...

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module
    daniele's Avatar
    Join Date
    Nov 2007
    Location
    italy
    Posts
    413
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    THIS IS EXAMPLE BINARY VALUE IN MY STRING: "101101010110101001110110101010" convert to EXADECIMAL= 760913322
    I wanted something like this.
    how can I convert a string in a exadecimal value?
    Could You please help me?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Binary and Binary Quickload issues with SSD
    By DJFuego in forum Fusion 2.5
    Replies: 8
    Last Post: 22nd January 2014, 10:58 PM
  2. Convert wav to MP3 in program?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 16th July 2013, 03:47 AM
  3. convert to hex and binary?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th December 2008, 01:35 PM
  4. Possible to convert to mac
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th October 2008, 02:05 AM
  5. Convert this pseudocode please?
    By Ran_TH in forum Extension Development
    Replies: 8
    Last Post: 28th August 2008, 11:34 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
  •