Skip to content

Commit 47a1052

Browse files
authored
Merge pull request #288 from kevindavus/math-helpers
Math helpers
2 parents 9a1bcb9 + a2e708c commit 47a1052

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/math.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ var utils = require('./utils');
55
var helpers = module.exports;
66

77
/**
8-
* Return the product of `a` plus `b`.
8+
* Return the magnitude of `a`.
99
*
1010
* @param {Number} `a`
11-
* @param {Number} `b`
1211
* @return {Number}
1312
* @api public
1413
*/
@@ -21,7 +20,7 @@ helpers.abs = function(num) {
2120
};
2221

2322
/**
24-
* Return the product of `a` plus `b`.
23+
* Return the sum of `a` plus `b`.
2524
*
2625
* @param {Number} `a`
2726
* @param {Number} `b`
@@ -108,7 +107,7 @@ helpers.floor = function(num) {
108107
};
109108

110109
/**
111-
* Return the product of `a` minus `b`.
110+
* Return the difference of `a` minus `b`.
112111
*
113112
* @param {Number} `a`
114113
* @param {Number} `b`
@@ -146,7 +145,7 @@ helpers.modulo = function(a, b) {
146145
};
147146

148147
/**
149-
* Multiply number `a` by number `b`.
148+
* Return the product of `a` times `b`.
150149
*
151150
* @param {Number} `a` factor
152151
* @param {Number} `b` multiplier

0 commit comments

Comments
 (0)