-
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:
beginVal =effect(“startVal,endVal”)(“point”)[0];
endVal = (effect(“startWert,endWert”)(“point”)[1]);
startT = effect(“startTime,endTime”)(“point”)[0];
endT = effect(“startTime,endTime”)(“point”)[1];
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?
Thanks,
Chris