Method: Oddsmaker::Odd::ImpliedProbability#overround!

Defined in:
lib/oddsmaker/odd/implied_probability.rb

#overround!(v) ⇒ ImpliedProbability

Calculates a new odd, with the given overround percentage.

Parameters:

  • v (Integer)

    Overround percentage (as whole number)

Returns:



23
24
25
# File 'lib/oddsmaker/odd/implied_probability.rb', line 23

def overround!(v)
  self.class.new(@value * ((100 + v)/100.rationalize), id)
end