Float formatu JavaScript

let x = 0.548

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