lib/hasher.js
function round(num, dec) {
  var pow = Math.pow(10, dec);
  return Math.round(num * pow) / pow;
}
function round(num, dec) {
  var pow = Math.pow(10, dec);
  return Math.round(num * pow) / pow;
}
function round ( num , dec ) { var pow = Math . pow ( 10 , dec ) ; return Math . round ( num * pow ) / pow ; }
Rounds a number to given decimal place.

@param {Number} num
@param {Number} dec
@return {Number}
Rounds a number to given decimal place .