Lingua::PT::Nums2Words - Converts numbers to Portuguese words


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

Index


NAME

Top

Lingua::PT::Nums2Words - Converts numbers to Portuguese words

SYNOPSIS

Top

  use Lingua::PT::Nums2Words qw/num2word/;

  $result = num2word(5);
  # $result now holds 'cinco'

  @results = num2word(1,2,10,100,1000,9999);
  # @results now holds ('um', 'dois', 'dez', 'cem', 'mil',
  #                     'nove mil novecentos e noventa e nove')

DESCRIPTION

Top

Nums2Words converts numbers to Portuguese words (works with numbers ranging from 0 to 999.999.999.999.999).

Does not support negative numbers.

num2word

This is the only function in this module. It turns numbers into words.

  $number = num2word(77);
  # $number now holds "setenta e sete"

SEE ALSO

Top

More tools for the Portuguese language processing can be found at the Natura project: http://natura.di.uminho.pt

AUTHOR

Top

Jose Castro, <cog@cpan.org>

COPYRIGHT & LICENSE

Top


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