suuji-converter

Convert suuji (数字) string to numeric value

License

License

GroupId

GroupId

jp.co.bizreach
ArtifactId

ArtifactId

suuji-converter
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

suuji-converter
Convert suuji (数字) string to numeric value
Project URL

Project URL

https://github.com/bizreach/suuji-converter
Project Organization

Project Organization

BizReach, Inc
Source Code Management

Source Code Management

https://github.com/bizreach/suuji-converter

Download suuji-converter

How to add to project

<!-- https://jarcasting.com/artifacts/jp.co.bizreach/suuji-converter/ -->
<dependency>
    <groupId>jp.co.bizreach</groupId>
    <artifactId>suuji-converter</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/jp.co.bizreach/suuji-converter/
implementation 'jp.co.bizreach:suuji-converter:1.0.0'
// https://jarcasting.com/artifacts/jp.co.bizreach/suuji-converter/
implementation ("jp.co.bizreach:suuji-converter:1.0.0")
'jp.co.bizreach:suuji-converter:jar:1.0.0'
<dependency org="jp.co.bizreach" name="suuji-converter" rev="1.0.0">
  <artifact name="suuji-converter" type="jar" />
</dependency>
@Grapes(
@Grab(group='jp.co.bizreach', module='suuji-converter', version='1.0.0')
)
libraryDependencies += "jp.co.bizreach" % "suuji-converter" % "1.0.0"
[jp.co.bizreach/suuji-converter "1.0.0"]

Dependencies

provided (1)

Group / Artifact Type Version
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

Suuji (数字) converter Build Status

Java library to convert suuji (数字) string to numeric value

Setup

Add following dependency to your pom.xml:

<dependency>
  <groupId>jp.co.bizreach</groupId>
  <artifactId>suuji-converter</artifactId>
  <version>1.0.0</version>
</dependency>

Usage

You can convert a suuji strings using jp.co.bizreach.suuji.SuujiConverter:

import jp.co.bizreach.suuji.SuujiConverter;

long value1 = SuujiConverter.convert("1万2千5百四十"); // => 12540
long value2 = SuujiConverter.convert("1万2000");       // => 12000
long value3 = SuujiConverter.convert("2千5百万");      // => 25000000
long value4 = SuujiConverter.convert("2千500万");      // => 25000000
long value5 = SuujiConverter.convert("2000万");        // => 20000000
long value6 = SuujiConverter.convert("2千万");         // => 20000000
jp.co.bizreach

BizReach,Inc.

Versions

Version
1.0.0