Navigation Menu

Skip to content

Commit

Permalink
Fixed bug: Trac #16065 on Rubyforge
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke IKEGAMI committed Feb 24, 2011
1 parent f1855dd commit 5294fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rushcheck/float.rb
Expand Up @@ -18,7 +18,7 @@ class Float
def self.arbitrary
RushCheck::Gen.new do |n, r|
a, b, c = (1..3).map { Integer.arbitrary.value(n, r) }
a + (b / (c.abs + 1))
a.to_f + (b.to_f / (c.abs.to_f + 1.0))
end
end

Expand Down

0 comments on commit 5294fc1

Please sign in to comment.