There are many many threads on counters on this forum, so many that it’s hard to find the right one…
The following should work:
// provide number to format. For instance:
tStart = inPoint;
tEnd = inPoint + 5;
vStart = 0;
vEnd = 13800;
x = linear(time, tStart, tEnd, vStart, vEnd);
// transform number to a string with 0 decimals
x = x.toFixed(0);
// provide separator
separator = ",";
// final result:
x.replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1"+separator);
Xavier