Archived
1
0
This repository has been archived on 2021-10-19. You can view files and clone it, but cannot push or open issues or pull requests.
nonabgs/Journal/Credits.cs

22 lines
588 B
C#
Raw Normal View History

2021-08-01 15:01:33 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace NonaBGS.Journal {
public class Credits {
public static string FormatCredits(int amount) {
if ((amount % 1000000) == 0) {
amount /= 1000000;
return string.Format("{0}M CR", amount);
} else if ((amount % 1000) == 0) {
amount /= 1000;
return string.Format("{0}K CR", amount);
}
return string.Format("{0} CR", amount);
}
}
}