Take a lock at Ruby Quiz #22 for a bunch of solutions to this problem. Why solve something that's already been done a hundred times? =) http://www.rubyquiz.com/quiz22.html Regards Ola Bini http://ola-bini.blogspot.com ----- Original Message ----- From: Dark Ambient <sambient / gmail.com> Date: Sunday, June 25, 2006 10:11 pm Subject: Re: help please: math or variable problem To: ruby-talk / ruby-lang.org (ruby-talk ML) > Ah ha! Well back to the drawing board. :) > > Stuart > > On 6/25/06, dda <headspin / gmail.com> wrote: > > > > On 6/25/06, Dark Ambient <sambient / gmail.com> wrote: > > > Anyway, down below I'm taking a number between 10 and 49 and > converting> to a > > > Roman Numeral. I've been experimenting with 46, which should > return> XXXXVI > > > only it's returning XXXXVIIIII > > > > No. It should return XLVI [10 to 50, 5, 1]. > > > > X, XX, XXX, XL, L, LX, LXX, LXXX, XC etc... > > > > -- > > Didier > > > > >