specfile / slownie
Slownie::printSpelledOut - print spelled out amount of money in Polish
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 231
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/specfile/slownie
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.