How to put (dot) to between of the number : <p>I am trying to change the type of the number but I don't know how and what keyword to search:</p>

<p>I would like to change the basic type of number in html from: </p>

<pre><code>2000000 -&gt; 2.000.000
</code></pre>

<p>And it will show on the screen the number have the dot in between.<a href="https://i.stack.imgur.com/qvXWo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qvXWo.png" alt="enter image description here"></a></p>

<p>ps: the input is number, do I need to use Javascript to convert it to string and add to html?</p>
