module Approximately

Include this module into your spec/test case/whatever

Constants

DEFAULT_DELTA
VERSION

Public Class Methods

approx(float, delta = DEFAULT_DELTA) click to toggle source

Returns the passed Float into a DeltaFloat object. The optional second argument is the delta that will be considered sufficient for the comparison to evaluate to true

# File lib/approximately.rb, line 36
def approx(float, delta = DEFAULT_DELTA)
  DeltaFloat.new(float, delta)
end

Private Instance Methods

approx(float, delta = DEFAULT_DELTA) click to toggle source

Returns the passed Float into a DeltaFloat object. The optional second argument is the delta that will be considered sufficient for the comparison to evaluate to true

# File lib/approximately.rb, line 36
def approx(float, delta = DEFAULT_DELTA)
  DeltaFloat.new(float, delta)
end