NAME

Lingua::ID::Number::Format::MixWithWords - Format number to a mixture of numbers and words (e.g. "12,3 juta")

VERSION

version 0.03

SYNOPSIS

use Lingua::ID::Number::Format::MixWithWords qw(format_number_mix);

print format_number_mix(num => 1.23e7); # prints "12,3 juta"

DESCRIPTION

This module formats number with Indonesian names of large numbers (ribu, juta, miliar, triliun, and so on), e.g. 1.23e7 becomes "12,3 juta". If number is too small or too large so it does not have any appropriate names, it will be formatted like a normal number.

FUNCTIONS

None of the functions are exported by default, but they are exportable.

format_number_mix(%args) -> RESULT

Arguments (* denotes required arguments):

  • min_format => float

  • min_fraction => float

  • num => float

  • num_decimal => int

SEE ALSO

Lingua::ID::Nums2Words

Lingua::EN::Number::Format::MixWithWords

Number::Format

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.