I have the following code:
var x = \"100.007\" x = String(parseFloat(x).toFixed(2)); return x => 100.01
This works awesomely just how I
You can use lastIndexOf to find the last occurence of ,. Then you can use slice to put the part before and after the , together with a . inbetween.
lastIndexOf
,
slice
.