-
I want to put decimal when reach more than 1000 (1K), how should I put it?
Currently I’m creating expression when reach 1000, it’s become 1K, but I can’t add decimal, currently I need to add 2 decimal behind:
numSlider= effect(“Slider Control”)(“Slider”).value.toFixed(2);
if(numSlider>999 && numSlider<1000000){
n = numSlider/1000;
Math.floor(n)+”k”
}
else if(numSlider>1000000){
m = numSlider/1000000;
Math.floor(m)+”M”
}
else(numSlider)