specfile / slownie
This package is abandoned and no longer maintained.
No replacement package was suggested.
Slownie::printSpelledOut - print spelled out amount of money in Polish
v0.0.6
2019-09-04 13:11 UTC
Requires
- php: >= 5.6 < 8
Requires (Dev)
- phpunit/php-code-coverage: >= 4 < 8
- phpunit/phpunit: >= 5 < 9
README
NAME
Slownie::printSpelledOut - print spelled out amount of money in Polish
SYNOPSIS
use SpecFile;
Slownie::printSpelledOut(number $amount) : string
DESCRIPTION
The printSpelledOut method prints spelled out amount of money in Polish.
RETURN VALUES
Spelled out amount as string.
EXAMPLES
Slownie::printSpelledOut(123) returns "sto dwadzieścia trzy złote 00/100" and Slownie::printSpelledOut(1234.01) - "tysiąc dwieście trzydzieści cztery złote 01/100".
EXCEPTIONS
NotANumberException - if amount isn't a number.
BUGS
- it only spells out numbers in one format and only in one language,
- using int or floats as monetary values loses precission,
- source code may be unidiomatic PHP, but it was fixed by phpcbf --standard=PSR2.