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 |
- Java 8
- Ant
- JUnit and Hamcrest (jars should be in your Ant or Java classpath)
ant compile
ant test
ant -Dinput=X