toujours afficher deux chiffres après la virgule javascript code example
Example: arrondi js
let x = 2.960024578;
let res = x.toFixed(2);
console.log(res);
//2,96
let x = 2.960024578;
let res = x.toFixed(2);
console.log(res);
//2,96