Skip to content

Convert a number to the String representing the english words for said number.

License

Notifications You must be signed in to change notification settings

kalebhermes/digit_to_word

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digit_to_word

Convert an int to a String representing the english words for said number.

Example

1 -> one
25 -> twenty-five
857 -> eight hundred fifty-seven
43021 -> forty-three thousand twenty-one

Getting Started

Install the package then simply call DigitToWord.translate(11345)

Example

var num = 954;
var numberAsString = DigitToWord.translate(num);
print(numberAsString) /// nine hundred fifty-four

About

Convert a number to the String representing the english words for said number.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages