Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static string ReadableReps(int reps)
- {
- if (reps < 10000)
- {
- return reps.ToString("N0"); // or just N for culture specific
- }
- else return Math.Round(reps / 1000.0, 1) + "k";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement