code: function iszero(x, tolerance) {
      if (tolerance === void 0) { tolerance = constants_1.EPSILON; }
      // the 'less-than-equal' comparision is necessary for correct result
      // when tolerance = 0
      return Math.abs(x) <= tolerance;
  }
docs: Check if input equals zero within given tolerance