javadev/moneytostr-russian 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

javadev/moneytostr-russian

Composer 安装命令:

composer require javadev/moneytostr-russian

包简介

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

README 文档

README

Maven Central Java CI CodeQL Coverage Status Known Vulnerabilities

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

Download

Download latest 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:

MoneyToStr moneyToStr = new MoneyToStr(Currency.UAH, Language.UKR, Pennies.NUMBER);
String result = moneyToStr.convert(123D);
// Expected: result = сто двадцять три гривні 00 копійок

统计信息

  • 总下载量: 1.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 42
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 42
  • Watchers: 3
  • Forks: 22
  • 开发语言: HTML

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固