Shows you how to count in any of the following languages:
Bahasa Indonesia
Binary
Decimal
Dutch (modern, old and banker's)
English (British, North American, Ordinals)
Esperanto
French
German
Hexadecimal
Icelandic
Japanese
Martian
Metric Metric Prefixes (grams)
Norwegian
Octal
Polish
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 com.mindprod.inwords.Polish
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
http://www.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 -jar C:\com\mindprod\inwords\inwords.jar
adjusting as necessary to account for where the jar file is.
number - in words - spell out - cheque - check - forty-two - Java - class - library
Contentwise responsible person: Canadian Mind Products, #101 - 2536 Wark Street, V8T 4G8 Victoria, BC, Canada
Roedy Green, inquiry(at)mindprod(dot)com, Phone: (250) 361-9093