find value half parti node js code example Example: arrondi js let x = 2.960024578; let res = x.toFixed(2); console.log(res); //2,96