Text::RomanText::Roman is a Perl module that converts roman algarism in integer numbers and the contrary, recognize algarisms. | |
Download |
Text::Roman Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Peter de Padua Krauss
- Publisher web site:
- http://search.cpan.org/~syp/Text-Roman-3.01/Roman.pm
Text::Roman Tags
Text::Roman Description
Text::Roman is a Perl module that converts roman algarism in integer numbers and the contrary, recognize algarisms. Text::Roman is a Perl module that converts roman algarism in integer numbers and the contrary, recognize algarisms.SYNOPSIS use Text::Roman; print roman(123);Text::Roman::roman() is a very simple algarism converter. It converts a single integer (in arabic algarisms) at a time to its roman correspondent. The conventional roman numbers goes from 1 up to 3999. MROMANS (milhar romans) range is 1 up to 3999*1000+3999=4002999.Up to these number we will found symbols as:??????but they do not concern this specific package. There is no concern for mix cases, like 'Xv', 'XiiI', as legal roman algarism numbers.roman($int): return string containing the roman corresponding to the given integer, or '' if the integer is out of domain... roman2int($str): return '' if $str is not roman or return integer if it is. isroman($str): verify whether the given string is a conventional roman number, if it is return 1; if it is not return 0...Quite same follows for mroman2int($str) and ismroman($str), except that these functions treat milhar romans.Requirements:· Perl Requirements: · Perl
Text::Roman Related Software