private static string GetCountForType(HexType hexType, World w) { const string stats = "Total {0} : {1} ({2}%)"; var totalHexesOfType = w.TotalHexesOfType(hexType); var percentage = totalHexesOfType/(double)w.TotalHexes * 100; return string.Format(stats, hexType, totalHexesOfType, percentage); }