InWords

Java code to converts number to words in any of 24 languagues.

Shows you how to count in any of the following languages: Bahasa Indonesia Binary Decimal (several variants) Dutch (modern, old and banker's) English (British, North American, Ordinals) Esperanto French German Grams Hexadecimal Icelandic Italian Japanese Martian Metric Metric Prefixes (grams) Norwegian Octal Polish RAM (bytes) Roman Numerals Spanish (and Spanish for cheques) Swedish Swiss French Tagalog Time Intervals RAM (bytes) Roman Numerals Swedish Swiss French Tagalog You can enter a number and it spells it out in words: e.g. -12345 to minus twelve thousand three hundred forty-five The classes it uses for conversion can be easily cannibalised for your own applications, e.g. writing cheques out in words. for example: String numStr = BritishEnglish.inWords(-1234); will generate the string: minus one thousand two hundred four handles longs up to Long.MAX_VALUE, namely: 9,223,372,036,854,775,807 Useful to learn to count in a foreign language. The InWords package classes are also useful for cheque writing or legal documents. You can run a batch test of any language with java.exe -jar inwords.jar where Polish is the name of the class handling the language you want to test. You can also run it as an Applet or a standalone GUI application. To install, Extract the zip download with WinZip, available from winzip.com (or similar unzip utility) into any directory you please, often C:\ -- ticking off the (user folder names) option. To run as an application, type: java.exe -jar C:\com\mindprod\inwords\inwords.jar adjusting as necessary to account for where the jar file is.

Changes: corrections to Italian. Tidy up scrambled class comments.

Minimum requirements: Java 1.7+

Operating system: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/applet/inwords.html

InWords screenshot

...

Special permissions

You may include the InWords Calculator on any CD compilation.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more