Answered
How to create a counting number but starting with Zeros
- September 25, 2019
- 3 replies
- 9501 views
Hello
I want to create a counting number with 6 decimals. I want to get the number 934 896, but I want to start with all decimals in zero like this: 000 000.
I wrote this expression:
t = Math.floor(effect("Control del deslizador")("Deslizador"))
t += "";
t.replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1 ");
But, I start with a single zero.
Thanks ofr your help!!
