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.
15 lines
314 B
15 lines
314 B
var helperNumberAdd = require('./helperNumberAdd')
|
|
var toNumber = require('./toNumber')
|
|
|
|
/**
|
|
* 加法运算
|
|
*
|
|
* @param { Number } num1 被加数
|
|
* @param { Number } num2 加数
|
|
* @return {Number}
|
|
*/
|
|
function add (num1, num2) {
|
|
return helperNumberAdd(toNumber(num1), toNumber(num2))
|
|
}
|
|
|
|
module.exports = add
|
|
|