Formato JavaScript Float

let x = 0.548

console.log(x.toFixed(2)); // 0.54
Sal-versij