Skip to content

Takes an integer value, outputs its representation in English

Notifications You must be signed in to change notification settings

csymeonides/numbers-in-english

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

numbers-in-english

Takes an integer value, outputs its representation in English.

Currently handles up to 33 digits, but can easily be extended.

Sample input Sample output
0 Zero
-1 Minus one
13 Thirteen
85 Eighty five
5237 Five thousand two hundred and thirty seven
300000006 Three hundred million and six

Dependencies:

  • Java 8
  • Ant
  • JUnit and Hamcrest (jars should be in your Ant or Java classpath)

To build:

ant compile

To run tests:

ant test

To run the code, i.e. convert an integer X to English:

ant -Dinput=X

About

Takes an integer value, outputs its representation in English

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages