[Tutor] The whole Roman to Dec and vice versa issue

John Fouhy john at fouhy.net
Mon Mar 12 00:50:49 CET 2007


On 12/03/07, Kent Johnson <kent37 at tds.net> wrote:
> > [note that this code will not produce strings like 'IV' for 4.  OTOH,
> > as I recall, the Romans didn't do that consistently either..]
> It seems to me that isn't so different from deciding to use 'Q' for 250.
> Maybe you can change the dictionary for this one too.

Ahh, good point.  I was thinking in terms of extra logic to figure out
the subtraction rules, but you could just use extra symbols :-)

-- 
John.


More information about the Tutor mailing list