arrondi js
let x = 2.960024578;
let res = x.toFixed(2);
console.log(res);
//2,96
Hugueprime
let x = 2.960024578;
let res = x.toFixed(2);
console.log(res);
//2,96