NAME
Lingua::ID::Nums2Words - Convert number to Indonesian verbage
VERSION
This document describes version 0.04 of Lingua::ID::Nums2Words (from Perl distribution Lingua-ID-Nums2Words), released on 2015-09-03.
SYNOPSIS
use Lingua::ID::Nums2Words qw(nums2words nums2words_simple);
print nums2words(123); # seratus dua puluh tiga
print nums2words_simple(123); # satu dua tiga
DESCRIPTION
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
nums2words($num) -> any
Convert number to Indonesian verbage.
This is akin to 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.
Arguments ('*' denotes required arguments):
num* => str
The number to convert.
Return value: (any)
nums2words_simple($num) -> any
Like nums2words but only pronounce the digits.
This is akin to converting 123 to "one two three" in English.
Arguments ('*' denotes required arguments):
num* => str
The number to convert.
Return value: (any)
SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Lingua-ID-Nums2Words.
SOURCE
Source repository is at https://github.com/perlancar/perl-Lingua-ID-Nums2Words.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Lingua-ID-Nums2Words
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.