SOURCE

function transferMoney(oldMoney,dividedMoney) {
  if(oldMoney) {
      const money = oldMoney.replace(/[\s+,\',\",\‘,\’,\“,\”,\<,\>,\《,\》]/g, "");
      console.log(Number(money / dividedMoney).toFixed(2))
    return Number(money / dividedMoney).toFixed(2)
  }else {
      console.log('金额为空')
      return ''
  }
}


transferMoney('55,010,083.33',100000000)
console 命令行工具 X clear

                    
>
console