Lingua::ID::Nums2Words - Convert number to Indonesian verbage


Lingua-ID-Nums2Words documentation  | view source Contained in the Lingua-ID-Nums2Words distribution.

Index


NAME

Top

Lingua::ID::Nums2Words - Convert number to Indonesian verbage

VERSION

Top

version 0.02

SYNOPSIS

Top

 use Lingua::ID::Nums2Words qw(nums2words nums2words_simple);

 print nums2words(123);        # seratus dua puluh tiga
 print nums2words_simple(123); # satu dua tiga

DESCRIPTION

Top

This module provides two functions, nums2words and <nums2words_simple>, to convert number to Indonesian verbage. Popular Indonesian term for this kind of library is "terbilang", or roughly "spelled amount" in English.

FUNCTIONS

Top

None are exported by default, but they are exportable.

nums2words(NUM) => STR

Convert number to Indonesian verbage (like converting 123 to "a hundred and twenty three" in English). Currently can handle real numbers in normal and scientific form in the order of hundreds of trillions. It also preserves formatting in the number string (e.g, given "1.00" nums2words will pronounce the zeros).

nums2words_simple(NUM) => STR

Like nums2words, but only pronounce the digits (like converting 123 to "one two three" in English).

SEE ALSO

Top

Lingua::ID::Words2Nums

AUTHOR

Top

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

Top


Lingua-ID-Nums2Words documentation  | view source Contained in the Lingua-ID-Nums2Words distribution.