diff --git a/lib/elo/rating.rb b/lib/elo/rating.rb index 0b954b4..b1bb565 100644 --- a/lib/elo/rating.rb +++ b/lib/elo/rating.rb @@ -50,7 +50,7 @@ def expected # For more information visit # {Wikipedia}[http://en.wikipedia.org/wiki/Elo_rating_system#Mathematical_details] def change - k_factor.to_f * ( result.to_f - expected ) + (k_factor.to_f * ( result.to_f - expected )).to_i end