User Tag List

Results 1 to 3 of 3

Thread: Android wont calculate large numbers?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    diefox's Avatar
    Join Date
    Feb 2007
    Posts
    124
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Android wont calculate large numbers?

    So, i was working on a way to compare a timedate saved in the player save date to the actual time in the players device.

    pretend its 2016, june(6), day(6), 14pm and 30minutes

    I ended up doing this: year+month(+100)+day(+100)+hour(+100)+minutes(+100 )

    the (+100) is to avoid CF to return me 7 when i need 07, so adding 100 kinda solved it.

    in the end i load this data as STR in a string object and the result is this: 2016106106114130, and i save it to the ini
    lets say tthat 5 minutes later another STR objects does the same calculations and return me 2016106106114135.

    those numbers are stored as strings in string objects

    So, using the STRtoVAl conversion in event editor, i do this:
    2016106106114130 - 2016106106114135 = 5 (the really important variable)

    my problem is: THAT WORKS IN PC RUNTIME but in android it just wont give me this final result, everyhting else loads and run just fine but it just wont calculate those numbers.

    Screenshot_2016-07-06-15-05-27.jpg

    i dont know if its clear to see in the screen shot above, the ZERO below the green object should be giving me the difference between those 2 big numbers in a string.

    the final question is: does the android runtime has any difficulty when working with big numbers?

  2. #2
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    6,784
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    the integer limit is set as mentioned in this page

    https://developer.android.com/refere...g/Integer.html

    the timestamp are long values comparing to integer so it won't fit in the range of values.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2006
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From what I'm seeing here, you could shorten it up to YYMMDDHHMM and not run into integer problems until 2022

Similar Threads

  1. Game wont play correctly on my Android devices.
    By Tuna in forum Android Export Module 2.5
    Replies: 4
    Last Post: 15th December 2014, 06:37 PM
  2. How can i deal with large numbers?
    By jn2002dk in forum Fusion 2.5
    Replies: 19
    Last Post: 21st November 2014, 11:53 AM
  3. Replies: 1
    Last Post: 8th October 2013, 06:15 AM
  4. Optimization Tips for Large Numbers of Objects
    By redpandagames in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 20th May 2012, 09:48 AM
  5. Display of large numbers in MMF...
    By bockert in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th February 2012, 05: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
  •