Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: symbolic increment of roman numerals

by Fastolfe (Vicar)
on May 04, 2002 at 16:04 UTC ( [id://164012]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://164012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found