JavaScript Parsefloat dwa dziesiętne

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