Changeset 592 for experiments/frams/foraminifera/data/scripts
- Timestamp:
- 08/22/16 01:47:04 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r591 r592 803 803 } 804 804 805 function getNumberCounter(counter, increase, unit ) //increase counter and then deduct and return an integer number ofunits805 function getNumberCounter(counter, increase, unitsize) //increase counter and then deduct and return an integer (=discrete) number of "full" units 806 806 { 807 807 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}; 811 811 } 812 812
Note: See TracChangeset
for help on using the changeset viewer.