class_docstr: Helper for `.MaxNLocator`, `.MultipleLocator`, etc.
  
  Take floating-point precision limitations into account when calculating
  tick locations as integer multiples of a step.
class_docstr_tok: ["Helper","for","`",".MaxNLocator","`",",","`",".MultipleLocator","`",",","etc",".","Take","floating-point","precision","limitations","into","account","when","calculating","tick","locations","as","integer","multiples","of","a","step","."]
code: def closeto(self, ms, edge):
      # Allow more slop when the offset is large compared to the step.
      if self._offset > 0:
          digits = np.log10(self._offset / self.step)
          tol = max(1e-10, 10 ** (digits - 12))
          tol = min(0.4999, tol)
      else:
          tol = 1e-10
      return abs(ms - edge) < tol
  
file_path: holoviews/holoviews/util/locator.py
imports: import math
  import numpy
label_desc: Use image node_id 2 for calling the _Edge_integer obj's underlying member method code with example usage: obj.closeto(ms, edge) and returns: unknown