Roman(3pm)

πŸ“¦
version 1.24 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ›οΈ NAME πŸ›οΈ

okay bestie, listen β€” Roman is the module, and it's literally just functions for converting between Roman and Arabic numerals. that's the whole vibe. it's giving ancient Rome meets modern perl. πŸ’…

so the manual name is Roman(3pm), in case you were wondering what page you're on 🫢


✨ VERSION ✨

Version 1.24 β€” that's the one, no cap. πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

okay here's the whole thing in action, look:

use Roman;

$arabic = arabic($roman) if isroman($roman);
$roman = Roman($arabic);
$roman = roman($arabic);

see? three little lines and you're converting like a main character πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so this package ships some functions that help you convert numeric notation back and forth between Roman and Arabic. that's it, that's the gig. it's a tiny little module and honestly? iconic for it. 🌸

🌈 Functions

πŸ”₯ isroman

Tests if argument is valid roman number. like a little vibe check for your numeral, fr fr.

πŸ’œ arabic

roman => arabic. goes one way, slays while doing it.

⭐ Roman

arabic => roman. goes the other way. also slays.

🌈 roman

Same as Roman, lowercase. lowercase bestie, lowercase energy, we love to see it. 🫢


πŸ’€ BUGS πŸ’€

okay so, heads up, this is the part where you pay attention:

  • Domain of valid Roman numerals is limited to less than 4000, since proper Roman digits for the rest are not available in ASCII. so like. past 3999 there's just... nothing. ASCII said no. 😭
  • Please report any bugs or feature requests to bug-roman /AT/ rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Roman. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. (yes, the author WILL know. they'll be notified. then YOU'll be notified. a whole little chain of notifying. we love accountability ✨)

πŸ‘€ SEE ALSO πŸ‘€

sibling modules, the whole Roman-numeral cinematic universe:

  • Text::Roman β€” also handles conversion between Arabic and Roman numerals, but can handle a larger range than this module. overachiever behavior tbh.
  • Math::Roman β€” another module for converting between Arabic and Roman numerals.
  • Convert::Number::Roman β€” handles the same conversion, but also lets you specify upper or lower case. fancy πŸ’…
  • Roman::Unicode β€” make Roman numerals, using Unicode characters. unicode girlies rise 🧚

🫢 SUPPORT 🫢

you can find documentation for this module with the perldoc command. just:

perldoc Roman

you can also look for information at:


πŸ’– AUTHOR πŸ’–

OZAWA Sakuro <ozawa at aisoft.co.jp> 1995-1997 Alexandr Ciornii, "<alexchorny at gmail.com>" 2007

two legends. decades apart. both icons. πŸ‘‘


Copyright (c) 1995 OZAWA Sakuro. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

so like β€” free, open, do your thing, just respect the terms, periodt. 🌈


and that's the page bestie!! this was perl v5.36.0, dated 2022-10-13, and the page itself is Roman(3pm). go forth and convert numerals, you absolute scholar πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from