NAME
Lingua::EN::Number::Format::MixWithWords - Format number to a mixture of numbers and words (e.g. 12.3 million)
VERSION
version 0.02
SYNOPSIS
use Lingua::EN::Number::Format::MixWithWords qw(format_number_mix);
print format_number_mix(num => 1.23e7); # prints "12.3 million"
DESCRIPTION
This module formats number with English names of large numbers (thousands, millions, billions, and so on), e.g. 1.23e7 becomes "12.3 million". 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
scale => str
SEE ALSO
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.