Comments on Profile Post by ZakMuir

  1. ItsJerry
    ItsJerry
    It goes up to 2147483648
    Nov 12, 2015
  2. ZakMuir
    ZakMuir
    Okay, thank you
    Nov 13, 2015
  3. blok
    blok
    Why is that?
    Nov 13, 2015
  4. ItsJerry
    ItsJerry
    The kills value is an Integer, in Java an integer is a 32-bit signed value, so it has a max-value of 2^31
    Nov 15, 2015
  5. ItsJerry
    ItsJerry
    Actually 2^31 - 1
    Nov 15, 2015
  6. blok
    blok
    Ah, thanks :D
    I was thinking use a double but you can't have fraction of a kill and that would be irrational. I am currently making my own KillCounter plugin and I am running into troubles.
    Nov 15, 2015
  7. blok
    blok
    Sorry if this is the wrong place to ask, but how would I convert from an int to a double so I can then format it with DecimalFormat? In other words, how did you make the k/d ratio?
    Nov 15, 2015
  8. ItsJerry
    ItsJerry
    First of all, you should start using StackExchange, it has everything. Second, I don't really get the question? Converting a double to an int shouldn't cause any problems. You can just cast (double), or multiply it by a double. double kd = kills / (double) deaths
    Nov 15, 2015
  9. blok
    blok
    Thanks Jerry! I have a stack overflow account, I should most likely start using it!

    So is it safe to assume you are the dev?
    Nov 15, 2015
  10. ItsJerry
    ItsJerry
    No, that's very dangerous. Harry is actually the dev
    Nov 15, 2015
  11. animelover999
    animelover999
    the dev
    Nov 16, 2015