round counter to two decimal points while using ".toLocaleString("de-GE")"
I have a problem, which should have a simple solution, but I can’t seem to wrap my head around it.
I’ve built a counter, using the following expression:
endVal = (effect(“startWert,endWert”)(“point”));
startT = effect(“startTime,endTime”)(“point”);
endT = effect(“startTime,endTime”)(“point”);
t = ease(time,startT,endT,beginVal,endVal).toLocaleString(“de-GE”);
The counter is supposed to separate thousands with a dot, but decimals with a comma, which is why I used the “toLocaleString”-method. The problem is, that the counter is spitting out three decimals while counting, but I only want it to use two decimals.
Does anybody have a solution?