unity-game-enginegoogle-play-games

What is the largest score possible in Google Play Games Leaderboard?


What is the biggest number I can save to Google Play Games Leaderboard as a score? I am using Google Play Games API and its leaderboard feature. I am using BigInteger to keep track of players' score but Play Games API only accept long variable when saving the score. I want to know if I can save more than the biggest number of long variables can keep. And what is the biggest number I can save on the leaderboard so if players score more than that number I can fix the score with that number and save it?


Solution

  • The maximum value of a signed 64-bit long variable in Java is 9,223,372,036,854,775,807. This is the largest number you can save using a long variable, and it is also the maximum value that can be saved on the Play Games leaderboard.