JS fixed number of decimal places

Javascript, add trailing zeroes to float number

Number.parseFloat(x).toFixed(2)