let string = "M1,60 0,0,7.332538412e-8,-90"
const regex = /-?\d*\.?\d+e[+-]?\d+/gm;
let n;
while ((n = regex.exec(string )) !== null) {
string = string.replace(n[0], "0");
}
var str1 = "M1,60 0,0,7.332538412e-8,-90"
str1.split(' ')[0] + ' ' + str1.split(' ')[1].split(',').map(function(item){return parseFloat(item).toFixed(2)}).join(',')
str1.split(' ')[0] + ' ' + str1.split(' ')[1].split(',').map(function(item){return parseFloat(item).toFixed(0)}).join(',')