code: function fixToInt(val, precision) {
  
    precision = precision || 2;
  
    var rounded = Math.round(val);
    if (rounded === val) {
      return '' + rounded;
    } else {
  
      var fixed = val.toFixed(precision);
  
      rounded = Math.round(fixed);
  
      if (rounded === +fixed) {
        return '' + rounded;
      }
  
      return Math.ceil(fixed);
    }
  }
docs: helpers -------