thirtysixthspan / descriptive_statistics

MIT License
755 stars 69 forks source link

mean code #15

Closed ExistsAndIs1 closed 10 years ago

ExistsAndIs1 commented 10 years ago

I think there is a problem with the code when using integers try calculating mean of [3,4]

problem is also shown below irb(main):008:0> 7/2 => 3 irb(main):009:0> 7.to_f/2 => 3.5

i did not verify it with your gem as I do not use it but I might be right if not, sorry :-)