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); } } }