徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
424 B

var helperNumberDecimal = require('./helperNumberDecimal')
var toNumberString = require('./toNumberString')
function helperMultiply (multiplier, multiplicand) {
var str1 = toNumberString(multiplier)
var str2 = toNumberString(multiplicand)
return parseInt(str1.replace('.', '')) * parseInt(str2.replace('.', '')) / Math.pow(10, helperNumberDecimal(str1) + helperNumberDecimal(str2))
}
module.exports = helperMultiply