Mercurial > projects > dynamin
changeset 3:d806edad4300
Shorten code: ['I', 'V'] -> "IV"
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 15 Jun 2009 22:19:30 -0500 |
parents | fab13ec910ba |
children | fc2420d39e3c |
files | dynamin/core/global.d |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dynamin/core/global.d Mon Jun 15 22:17:26 2009 -0500 +++ b/dynamin/core/global.d Mon Jun 15 22:19:30 2009 -0500 @@ -202,7 +202,7 @@ "highest convertable roman numeral is 3999"); static combos = [[0][0..0], [0], [0,0], [0,0,0], [0,1], [1], [1,0], [1,0,0], [1,0,0,0], [0,2]]; - static letters = ['I', 'V', 'X', 'L', 'C', 'D', 'M']; + static letters = "IVXLCDM"; string str = ""; int letterOffset = 0; while(num > 0) {