How to parse float with two decimal places in javascript? September 14, 2022 by Tarik You can use toFixed() to do that var twoPlacedFloat = parseFloat(yourString).toFixed(2)