User Tag List

Results 1 to 2 of 2

Thread: How to get the average value from values in ini

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export Module
    Retrobolt's Avatar
    Join Date
    Mar 2016
    Posts
    402
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to get the average value from values in ini

    I want to enter numbers into an ini and then calculate the average value.
    Thanks

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    alexexhowl's Avatar
    Join Date
    Jan 2015
    Location
    RU, YKT
    Posts
    357
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    why ini? why not plain text? it's will be so much easier to achieve this with plaint text + list object.
    if you use ini, you must store your data like this:*

    0=54
    1=1
    2=4
    3=5
    4=23
    5=34
    or [GROUP 1]
    0=34
    1=23
    [GROUP 2]
    0=61
    1=34
    in other word, specify how loop through data and read em in correct order.



    in list object you can write data in any text editor:

    154
    21
    3
    34
    or 1, 54, 21, 3, 34

    no markers, just values. You can simply load this into list object, loop through lines and collect values. Second column requires string parser object to divide each values to individual data.

    i've maded methods for comparison -> value average.mfa

Similar Threads

  1. Get average of multiple objects alt.val
    By SolarB in forum Fusion 2.5
    Replies: 2
    Last Post: 26th May 2014, 01:14 PM
  2. on average, what is the number of impressions...
    By Tuna in forum SWF/Flash Export Module Version 2.0
    Replies: 14
    Last Post: 7th September 2010, 02:58 PM
  3. What's Your Average Game Development Time?
    By Docilemouse in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th April 2009, 07:08 PM
  4. Taking a TOTAL average... how?
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st June 2008, 09:35 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
  •