Skip to content

CalvinGrain/Latvian-numbers-to-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

  • Works under 10 000
  • Works with both "," and "." decimal seperator
  • Can be used for latvian invoice generation
  • lightweight and fast

Examples:

require_once 'lvnumtowords.php';
$num = new lvnumtowords();

echo $num->toCurrency('9999');
//deviņtūkstoš deviņsimt deviņdesmit deviņi eiro un 00 centi

echo $num->toCurrency('1337.22');
//tūkstots trīssimt trīsdesmit septiņi eiro un 22 centi

echo $num->toCurrency('0.22');
//00 eiro un 01 cents

echo $num->toCurrency('1,22');
//viens eiro un 22 centi

echo $num->toCurrency('1,00');
//viens eiro un 00 centi

About

Numbers to words with currency

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages