NAME

Lingua::SV::Numbers - Convert numbers into Swedish words.

VERSION

Version 0.03

SYNOPSIS

use Lingua::SV::Numbers qw/num2sv num2sv_ordinal/;
print num2sv( 99 ) . " luftballonger\n"; #-> nittionio luftballonger
print num2sv_ordinal( 13 ) . " timmen\n"; #-> trettonde timmen

FUNCTIONS

These functions are provided but not exported by default.

num2sv EXPR

Alias for num2sv_cardinal.

num2sv_cardinal EXPR

Returns a Swedish string of the cardinal number corresponding to EXPR. Only integers (positive and negative) are supported. E.g. 3 => "tre"

num2sv_ordinal EXPR

Returns a Swedish string of the ordinal number corresponding to EXPR. Only integers (positive and negative) are supported. E.g. 3 => "tredje"

TODO

  • support fractions

  • support scientific notation

  • support thousand-dividing commas

AUTHOR

Tim Nordenfur, <tim at gurka.se>

BUGS

Please report any bugs or feature requests to bug-lingua-sv-numbers at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-SV-Numbers. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Lingua::SV::Numbers

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2010 Tim Nordenfur.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.