code: function(bcd) 
    {
      var n = 0;
      var m = 1;
      for(var i = 0; i<bcd.length; i+=1) {
          n += (bcd[bcd.length-1-i] & 0x0F) * m;
          n += ((bcd[bcd.length-1-i]>>4) & 0x0F) * m * 10;
          m *= 100;
      }
      return n;
    }
docs: /*
  @src: https://gist.github.com/joaomaia/3892692
  bcd2number -> takes a nodejs buffer with a BCD and returns the corresponding number.
  input: nodejs buffer
  output: number