# File lib/facet/float/round.rb, line 15 def approx?( x, n=0.01 ) raise ArgumentError, "zero equates to infinte degree" if n == 0 self.round_to(n) == x.to_f.round_to(n) end