Convert a number into a Roman Numeral in javaScript
How can I convert integers into roman numerals ? function romanNumeralGenerator (int) { } For example, see the following sample inputs and outputs: 1 = "I" 5 = "V" 10 = "X" 20 = "XX" 3999 = "MMMCMXCIX" Caveat: Only support numbers between 1 and 3999 Rene Pot There is a nice one here on this blog I found using google: http://blog.stevenlevithan.com/archives/javascript-roman-numeral-converter function romanize (num) { if (isNaN(num)) return NaN; var digits = String(+num).split(""), key = ["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM", "","X","XX","XXX","XL","L","LX","LXX","LXXX","XC", "","I"