I need format a decimal number on JavaScript, my number are returning 100.000 but I want 100,00.
var val = 100.0000;
console.log(val);
// do something
console.log(val);
what I get: 100.0000
what I expected: 100,00
what I need to do for made this?