On 1/2/07, Shiloh Madsen <shiloh.madsen / gmail.com> wrote:
> Ok, I'm having trouble with another exercise in this book. It has
> asked me to write a program that will calculate the old school roman
> numeral value for a given modern number (up to the thousands). To
> clarify, old school roman numerals didn't do the subtraction thing, so
> 4 is IIII, nine is VIIII, etc. I've played around with a few options
> using division, loops and modulus, but can't seem to get my brain
> around the problem...any suggestions?
>

Lest we all forget about the code snippets on RubyForge ...

http://rubyforge.org/snippet/detail.php?type=snippet&id=135

Should do all you need (and more)

Blessings,
TwP