- Notifications
You must be signed in to change notification settings - Fork22
The tool to convert amount to words in Ukrainian/English/Russian languages. Сумма прописью.
License
NotificationsYou must be signed in to change notification settings
javadev/moneytostr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The tool to convert amount to words in Ukrainian/English/Russian languages
Downloadlatest release or grab via Maven:
<dependency> <groupId>com.github.javadev</groupId> <artifactId>moneytostr</artifactId> <version>1.24</version></dependency>
or Gradle:
implementation'com.github.javadev:moneytostr:1.24'MoneyToStr - Java Class
Class Overview:The MoneyToStr class provides methods to convert numeric values into text representations of currency in various languages.
Dependencies:
- Java Standard Library
Public Classes:
- MoneyToStr: Main class for converting numbers to symbols.
- MoneyToStr.Currency: Enum representing different currencies.
- MoneyToStr.Language: Enum representing different languages.
- MoneyToStr.Pennies: Enum representing pennies as numbers or text.
Public Methods:
- MoneyToStr(Currency currency, Language language, Pennies pennies): Constructor to initialize the MoneyToStr object with currency, language, and pennies.
- String convert(Double theMoney): Converts a double value to a text description of the money value.
- String convert(Long theMoney, Long theKopeiki): Converts an amount to words.
Usage Example:
MoneyToStrmoneyToStr =newMoneyToStr(Currency.UAH,Language.UKR,Pennies.NUMBER);Stringresult =moneyToStr.convert(123D);// Expected: result = сто двадцять три гривні 00 копійок
About
The tool to convert amount to words in Ukrainian/English/Russian languages. Сумма прописью.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.