# Convert-Number-Digits
Convert Digits Between the Scripts of Unicode


# SYNOPSIS
```
  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";
```

#  DESCRIPTION

The `Convert::Number::Digits` module will convert a sequence of digits from one
script supported in Unicode, into another.  UTF-8 encoding is used
for all scripts.


## METHODS


* `convert` - outputs digits in Western script (0-9).

* `toMethods` - get a list of the following conversion methods:

  * `toArabic` - output digits in Arabic script (ЩЎ-Щў).
  * `toArabicIndic` - output digits in ArabicIndic script (Ы±-ЫІ).
  * `toBengali` - output digits in Bengali script (১-২).
  * `toBold` - output digits in Bold script (рќџЏ-рќџђ).
  * `toDevanagari` - output digits in Devanagari script (१-२).
  * `toDoubleStruck` - output digits in DoubleStruck script (рќџ™-рќџљ).
  * `toEthiopic` - output digits in Ethiopic script (бЌ©-бЌЄ).
  * `toFullWidth` - output digits in FullWidth script (пј‘-пј’).
  * `toGujarati` - output digits in Gujarati script (૧-૨).
  * `toGurmukhi` - output digits in Gurmukhi script (੧-੨).
  * `toKannada` - output digits in Kannada script (аі§-аіЁ).
  * `toKhmer` - output digits in Khmer script (бџЎ-бџў).
  * `toLao` - output digits in Lao script (а»‘-а»’).
  * `toLimbu` - output digits in Limbu script (᥆-᥏).
  * `toMalayalam` - output digits in Malayalam script (൧-൨).
  * `toMongolian` - output digits in Mongolian script (б ‘-б ’).
  * `toMonoSpace` - output digits in MonoSpace script (рќџ·-рќџё).
  * `toMyanmar` - output digits in Myanmar script (бЃЃ-бЃ‚).
  * `toOriya` - output digits in Oriya script (а­§-а­Ё).
  * `toOsmanya` - output digits in Osmanya script (рђ’ -рђ’©).
  * `toRomanLower` - output digits in lowercase Roman numerals (в…°-в…ё).
  * `toRomanUpper` - output digits in uppercase Roman numerals (в… -в…Ё).
  * `toSansSerif` - output digits in SansSerif script (рќџЈ-рќџ¤).
  * `toSansSerifBold` - output digits in SansSerifBold script (рќџ­-рќџ®).
  * `toTamil` - output digits in Tamil script (аЇ§-аЇЁ).
  * `toTelugu` - output digits in Telugu script (౧-౨).
  * `toThai` - output digits in Thai script (๑-๒).
  * `toTibetan` - output digits in Tibetan script (ајЎ-ајў).


# CAVAETS

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.


# REQUIRES

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.