Lingua::SU::Nums2Words - Convert number to Sundanese verbage
This document describes version 0.04 of Lingua::SU::Nums2Words (from Perl distribution Lingua-SU-Nums2Words), released on 2015-09-03.
use Lingua::SU::Nums2Words qw(nums2words nums2words_simple); binmode(STDOUT, ":utf8"); print nums2words(1023); # sa-rébu dua puluh tilu print nums2words_simple(109); # hiji kosong salapan
This module provides two functions, nums2words and nums2words_simple, to convert number to Sundanese verbage.
Convert number to Sundanese 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.
nums2words
Arguments ('*' denotes required arguments):
num* => str
The number to convert.
Return value: (any)
Like nums2words but only pronounce the digits.
This is akin to converting 123 to "one two three" in English.
Please visit the project's homepage at https://metacpan.org/release/Lingua-SU-Nums2Words.
Source repository is at https://github.com/perlancar/perl-Lingua-SU-Nums2Words.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Lingua-SU-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.
perlancar <perlancar@cpan.org>
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.
To install Lingua::SU::Nums2Words, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::SU::Nums2Words
CPAN shell
perl -MCPAN -e shell install Lingua::SU::Nums2Words
For more information on module installation, please visit the detailed CPAN module installation guide.