Last active
August 29, 2015 14:20
-
-
Save unascribed/ad8ecc99b25c90663bd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long value = 123456; | |
// 56 bronze, 34 silver, 12 gold | |
int gold = (value / 10000); | |
int silver = (value / 100 % 100); | |
int bronze = (value % 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment