Giter Site home page Giter Site logo

Comments (7)

howardchung avatar howardchung commented on June 20, 2024

Do you have a sample API call where this is happening?

from core.

yungbuck81 avatar yungbuck81 commented on June 20, 2024

Match ID 7329517346. The KDA value on tide is rounded down from 2.55555556 to 2. In our league of 12-20 teams playing two games per week we've seen some kda discrepancies for a while now when we avg the two games.

from core.

yungbuck81 avatar yungbuck81 commented on June 20, 2024

Similarly in Match ID 7329550501, player 9 has their KDA rounded down from what would be 3.5 to 3. https://api.opendota.com/api/matches/7329550501

from core.

builder-247 avatar builder-247 commented on June 20, 2024

Yeah looks like it's indeed rounded down, wonder what the plan was here

pm.kda = Math.floor((pm.kills + pm.assists) / (pm.deaths + 1));

Anyways you could also just calculate the kda from the kills, assists and deaths yourselves

from core.

howardchung avatar howardchung commented on June 20, 2024

Looks like I wrote that code like 8 years ago haha so it's probably my fault. We probably could just replace it with Math.round and add a few decimals

from core.

yungbuck81 avatar yungbuck81 commented on June 20, 2024

That would be awesome if you would be willing to do that!

from core.

yungbuck81 avatar yungbuck81 commented on June 20, 2024

Thanks so much for doing this!

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.