New Posts
Live Radio
Welcome guest, is this your first visit?
  • Login:
Global Gaming Events
Gambling Domains - Buy & Sell

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default Odds Conversion question

    I'm finishing up a little script and am having some math issues converting american odds to decimal odds. The formula I am currently using works most of the time, but sometimes it gives me odds that are not in line with other bookies offering similar odds and it is making the comparison out of whack.

    Here is what I am using to convert american to decimal:

    am >= 100
    dec = 1 + (am / 100)

    am <= -100
    dec = 1 - (am / 100)

    Is this correct?

  2. #2
    ความลับไม่มีในโลก
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    ▐▐▐▐▐▐
    Posts
    4,727
    Feedback Score
    45 (100%)

    Default

    First one is correct, but the second one is not and should be:

    am <= -100
    dec = 1 + (100 / am)
    If you're going to bet US Sports online - I strongly suggest 5Dimes.com or Bookmaker.eu.

    Some succeed because they are destined to, but most succeed because they are determined to.

  3. #3
    #!/usr/bin/mikebrad
    My Status
     

    Add as a friend
    Join Date
    Nov 2008
    Location
    USA
    Posts
    697
    Feedback Score
    8 (100%)

    Default

    Thanks, was hoping you'd chime in. I was showing New England at -22.0, lol.

  4. #4
    Member
    My Status
     

    Add as a friend
    Join Date
    Mar 2009
    Location
    Asia
    Posts
    98
    Feedback Score
    1 (100%)

    Default

    I've built a PHP library of common sportsbetting functions, drop me a message if you'd like it.

    Also it should be:
    am <= -100
    dec = 1 + (100 / abs(am))

    Where abs(am) is the absolute (ie, positive) value of am

  5. #5
    New Member
    My Status
     

    Add as a friend
    Join Date
    Feb 2012
    Location
    usa
    Posts
    1
    Feedback Score
    0

    Default

    Quote Originally Posted by JTJagger View Post
    I've built a PHP library of common sportsbetting functions, drop me a message if you'd like it.
    you got PM


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.5
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 3.6.0
Affiliate Program Consultant