How can I format values like this: 1.000
or 150.000
or 42.000
?
My code is this:
var f02 = 42000;
console.log(parseInt(f02));
I need the formatting of the f02
variable to be: 42.000
, and when the number is greater the formatting suits, eg: 150.000
or 1.000.000