in reply to symbolic increment of roman numerals

For those interested in doing more "real" roman numeral operations, Math::Roman handles much of this for you:
use Math::Roman 'roman'; my $y = roman 'MCMLXXVII'; print "$y\n" while $y++ < 2002;

Replies are listed 'Best First'.
Re: Re: symbolic increment of roman numerals
by PetaMem (Priest) on May 05, 2002 at 12:21 UTC
    Hi,

    I contacted the author of the Math::Roman module and reported some bugs, so the 1.07 should be usable now. The big difference in the approach, is the symbolic operation and not internal transformations to/from another nuber system/scheme.

    Try to increment the 'IM' number with the Math::Roman module...

    BTW: The symbolic approach lets you (though expensive operation) guess what roman number xy probably is, though its in a wrong format.

    Most probably we'll merge the best of both worlds in a later Math::Roman version.

    Bye
     PetaMem