Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The tool to convert amount to words in Ukrainian/English/Russian languages. Сумма прописью.

License

NotificationsYou must be signed in to change notification settings

javadev/moneytostr

Repository files navigation

Maven CentralJava CICodeQLCoverage StatusKnown Vulnerabilities

The tool to convert amount to words in Ukrainian/English/Russian languages

Download

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

Stars

Watchers

Forks

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp