Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Sep 2, 2021
1 parent 5875b92 commit 53d5767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions func/helperMultiply.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var helperNumberDecimal = require('./helperNumberDecimal')
var toNumberString = require('./toNumberString')

function handleMultiply (multiplier, multiplicand) {
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 = handleMultiply
module.exports = helperMultiply
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xe-utils",
"version": "3.3.1",
"version": "3.3.2",
"description": "JavaScript 函数库、工具类",
"main": "index.js",
"unpkg": "dist/xe-utils.umd.min.js",
Expand Down

0 comments on commit 53d5767

Please sign in to comment.