class Float

Public Instance Methods

approx_equal?(other,threshold=0.5) click to toggle source
# File lib/radiation/spectrum.rb, line 109
def approx_equal?(other,threshold=0.5)
        if (self-other).abs < threshold    # "<" not exact either
                return true
        else
                return false
        end
end