DigitConverter - Simply returns the word interpretation of a given digit. The range of values currently supported is 1 - 9,999,999.
Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add dependency in your app module
dependencies {
implementation 'com.github.ezechuka:DigitConverter:1.0.1'
}
Use DigitConverter.asWords(figure: Int)
to get the word representation of the given figure.