Answers for "js arrondi 2 décimales"

2

js arrondir a deux decimal

const number = 3.1415926
const roundedNumber = number.toFixed(2)
Posted by: Guest on June-01-2021
0

arrondi js

let x = 2.960024578;
let res = x.toFixed(2);
console.log(res);
//2,96
Posted by: Guest on September-17-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language