User Tag List

Results 1 to 4 of 4

Thread: Hexadecimal or binary values above decimal billion

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Hexadecimal or binary values above decimal billion

    I discovered that there is a limit on how big hexadecimal or binary values can get. They can only hold a maximal decimal value of 1000000000. Is there a way to convert a decimal value bigger then 1000000000 into a hexadecimal or binary value? I need a binary or hexadecimal value that can hold decimal values up to 9007199254740992.

    Who can help me with a solution?

    Thanks!

  2. #2
    No Products Registered

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

    Re: Hexadecimal or binary values above decimal bil

    Could the Int64 Object perhaps be of any help?

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexadecimal or binary values above decimal bil

    There was no need to say binary or hexadecimal, as those are only ways of writing the number, and are irrelevant. You could have just said that you need a way to use numbers up to 9007199254740992 in MMF2.

    Btw the actual limit of an integer in a 32-bit pc is 2147483647, or (2 ^ 31) - 1. The other (32nd) bit is used to extend the range into negative numbers, down to -2147483648.

    If you need it to be as accurate as the number you said then your only choice is the int64 object I think, but if you're only interested in the first few digits (eg 6) then just use floating point numbers: 9.007199E15 (9.007199 x 10 ^ 15)

  4. #4
    No Products Registered

    Join Date
    Sep 2006
    Location
    Netherlands
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Hexadecimal or binary values above decimal bil

    I have tried the Int64 object, but when I convert a decimal number greater than 1000000000 into hex or bin it doesn't work correctly. The converted number is incorrect. Can this be a bug?
    For example a value greater than 1000000000 gives back hex 0x0. This is not right!!!

    Please help me to solve my problem. Maybe an example how it will work?

Similar Threads

  1. Enter decimal values during runtime
    By loglady in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th May 2013, 02:45 PM
  2. Decimal numbers in Alterable Values?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st January 2012, 04:05 PM
  3. Random decimal values
    By Tuna in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 5th August 2008, 11:05 PM
  4. Storing Decimal Numbers as Alterable Values
    By Raphael in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 21st September 2006, 01:17 AM

Posting Permissions

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