Convert::Number::Digits - Convert Digits Between the Scripts of Unicode.
use utf8; require Convert::Number::Digits; my $number = 12345; my $d = new Convert::Number::Digits ( $number ); print "$number => ", $d->toArabic, "\n"; my $gujarti = $d->toGujarti; my $khmer = reverse ( $d->toKhmer ); $d->number ( $khmer ); # reset the number print "$number => $gujarti => ", $d->number, " => ", $n->convert, "\n";
The Convert::Number::Digits will convert a sequence of digits from one script supported in Unicode, into another. UTF-8 encoding is used for all scripts.
Convert::Number::Digits
convert
toMethods
toArabicIndic
toBengali
toBold
toDevanagari
toDoubleStruck
toEthiopic
toFullWidth
toGujarati
toGurmukhi
toKannada
toKhmer
toLao
toLimbu
toMalayalam
toMongolian
toMonoSpace
toMyanmar
toOriya
toOsmanya
toRomanLower
toRomanUpper
toSansSerif
toSansSerifBold
toTamil
toTelugu
toThai
toTibetan
Ethiopic, Roman and Tamil scripts do not have a zero. Western 0 is used instead.
Though a script has digits its numeral system is not necessarily digital. For example, Roman, Coptic, Ethiopic, Greek and Hebrew. If you convert digits into these systems it is assumed that you know what you are doing (and your starting number is an applicable sequence). The Convert::Number::Digits package converts digits and not numbers.
The package is known to work on Perl 5.6.1 and 5.8.0 but has not been tested on other versions of Perl by the author.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
None presently known.
Daniel Yacob, dyacob@cpan.org
Convert::Number::Coptic Convert::Number::Ethiopic
Included with this package:
examples/digits.pl
3 POD Errors
The following errors were encountered while parsing the POD:
=over should be: '=over' or '=over positive_number'
Non-ASCII character seen before =encoding in '(١-٢).'. Assuming UTF-8
You forgot a '=back' before '=head1'
To install Convert::Number::Digits, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::Number::Digits
CPAN shell
perl -MCPAN -e shell install Convert::Number::Digits
For more information on module installation, please visit the detailed CPAN module installation guide.