Changeset 592 for experiments/frams


Ignore:
Timestamp:
08/22/16 01:47:04 (8 years ago)
Author:
Maciej Komosinski
Message:

More meaningful variable names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r591 r592  
    803803}
    804804
    805 function getNumberCounter(counter, increase, unit) //increase counter and then deduct and return an integer number of units
     805function getNumberCounter(counter, increase, unitsize) //increase counter and then deduct and return an integer (=discrete) number of "full" units
    806806{
    807807        counter += increase;
    808         var result = int(counter/unit);
    809         counter -= result*unit;
    810         return {"counter" : counter, "number" : result};
     808        var unitcount = int(counter/unitsize);
     809        counter -= unitcount*unitsize;
     810        return {"counter" : counter, "number" : unitcount};
    811811}
    812812
Note: See TracChangeset for help on using the changeset viewer.