숫자를 한글로 바꿔주는 라이브러리입니다.
Project : build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Module : build.gradle
dependencies {
implementation 'com.github.Im-Tae:HangulNumber:Version'
}
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.Im-Tae</groupId>
<artifactId>Hangul_Number</artifactId>
<version>Version</version>
</dependency>
HangulNumber.numberToHangul("7234526")
HangulNumber.numberToHangul("7456653467", Spacing.TYPE)
Spacing.NONE
: 기본 값, 띄어쓰기가 없습니다.Spacing.SMALL
: 작은 단위( 십, 백, 천 )의 띄어쓰기가 있습니다.Spacing.BIG
: 큰 단위( 만, 억, 조, 경, 해, 자, 양 )의 띄어쓰기가 있습니다.Spacing.BOTH
: 작은 단위, 큰 단위 모두 띄어쓰기가 있습니다.
0 부터 10^33 - 1 ( 천 양 )까지 [0 ~ 99999999999999999999999999999999 ]
Copyright 2020 Im-Tae (TaeGeon Lim)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.