智能照明系统APP-本地串口
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.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/54/547fc02920525d2d6d4caa8fc4a...

12 lines
290 B

var isNum = require('./isNum');
exports = function(a, b, relTol, absTol) {
if (!isNum(relTol)) relTol = 1e-9;
if (!isNum(absTol)) absTol = 0;
return abs(a - b) <= max(relTol * max(abs(a), abs(b)), absTol);
};
var abs = Math.abs;
var max = Math.max;
module.exports = exports;