javascript show numbers with decimals
<p>i'm trying to show numbers in labels, i want if number > 1000 show it in the format<br>
<strong>1.000</strong> or <strong>1,000</strong><br>
i tried with toFixed but it is not the solution, also toPrecision but it gave me a number like 1,2e+, i tried with<br>
<strong>number/1000</strong><br>
but when the number ends up with a 0, it desappear from the result, so how can i do this??</p>

<p>thanks</p>
