JavaScript Konwertuj ciąg na 2 dziesiętny

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