2,147,483,647

Discussion in 'Programming' started by starsi, Jul 13, 2009.

  1. #1
    Why is 2,147,483,647 the highest score you can get in a game and how can you solve this code-wise?
     
    starsi, Jul 13, 2009 IP
  2. adwall.asia

    adwall.asia Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Its because 2,147,483,647 is the largest Signed number in 32bits. Either take long unsigned numbers or for more details type the number "2,147,483,647" in wikipedia or google :)
     
    adwall.asia, Jul 13, 2009 IP
  3. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #3
    Yea a 32 bit system can only calculate that much use a 64bit to increase the limit
     
    Bohra, Jul 13, 2009 IP
  4. starsi

    starsi Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    How to get past it if you're coding something in php?

    Bohra, what's a 64bit? Does that depend on your server?
     
    starsi, Jul 13, 2009 IP
  5. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #5
    64bit operating system see http://en.wikipedia.org/wiki/64-bit
     
    Bohra, Jul 13, 2009 IP