MCPcopy Create free account
hub / github.com/LiuXin-Developer/easyMath / division

Function division

src/index.js:75–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74// 除法
75const division = function () {
76 // 计算结果
77 let maxDecimalDigits = getMaxDecimalDigits(arguments)
78 let results = toInteger(arguments[0], maxDecimalDigits)
79 for (let i = 1; i < arguments.length; i++) {
80 results = results / toInteger(arguments[i], maxDecimalDigits)
81 }
82 // results = toInteger(results, arguments.length - 2)
83 // 返回结果
84 return results
85}
86// 除法别名
87const chufa = division
88const chu = division

Callers

nothing calls this directly

Calls 2

getMaxDecimalDigitsFunction · 0.85
toIntegerFunction · 0.85

Tested by

no test coverage detected