require File.dirname(__FILE__) + '/../../spec_helper'

describe "Float#*" do
  it "returns self multiplied by other" do 
    (4923.98221 * 2).should be_close(9847.96442, TOLERANCE) 
    (6712.5 * 0.25).should be_close(1678.125, TOLERANCE) 
    (256.4096 * 0xffffffff).to_s.should == 1101270846124.03.to_s
  end
end

require File.dirname(__FILE__) + '/../../spec_helper'

describe "Float#*" do
  it "returns self multiplied by other" do 
    (4923.98221 * 2).should be_close(9847.96442, TOLERANCE) 
    (6712.5 * 0.25).should be_close(1678.125, TOLERANCE) 
    (256.4096 * 0xffffffff).should be_close(1101270846124.03, TOLERANCE * 0xffffffff)
  end
end

Modify Float multiply spec to be_close with a TOLERANCE multiplied by a similar scale as the value under test.
Modify Float multiply spec to be_close with a TOLERANCE multiplied by a similar scale as the value under test.
