javascript convert string to 2 decimal
snippet in javascript

javascript convert string to 2 decimal

user9298

var twoPlacedFloat = parseFloat(yourString).toFixed(2)