Skip to content

Returns the string representation of a given integer

Notifications You must be signed in to change notification settings

ezechuka/DigitConverter

Repository files navigation

DigitConverter

DigitConverter - Simply returns the word interpretation of a given digit. The range of values currently supported is 1 - 9,999,999.

Dependency Project Level

 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' }
       }
   }

Dependency App Level

Add dependency in your app module

  dependencies {
        implementation 'com.github.ezechuka:DigitConverter:1.0.1'
  }

Usage

Use DigitConverter.asWords(figure: Int) to get the word representation of the given figure.