diff --git a/lib/rushcheck/float.rb b/lib/rushcheck/float.rb index e108bce..8b42035 100644 --- a/lib/rushcheck/float.rb +++ b/lib/rushcheck/float.rb @@ -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