Yep,
this is my basic 4 function calculator. It doesn't use numbers however, it uses words. For
example, you can compute:
Seven Thousand Five Hundred Forty Seven Plus Ninety
Six to get seven thousand six hundred forty three.
Get the idea?
You can also do more complicated things. For example, you can use
"open parenthesis" and "close parenthesis" to group expressions. i.e.:
"open parenthesis eight plus seven close parenthesis times three" would give the
result "forty five" instead of "twenty nine" without the parenthesis.
recognized key words:
all numbers ...
plus, minus, times, divide by, negative, open/close parenthesis.
FUN
You can have a lot of fun with this, try making ridiculously
complicated expressions, and let the program figure it out. For example: "open
parenthesis negative eighteen hundred forty seven plus three thousand eighteen close
parenthesis times seven hundred ninety six plus negative thirteen times thirty six divide
by twelve minus open parenthesis eight hundred sixty four plus four hundred seventy three
close parenthesis times negative fourteen" and the program instantly spits out
"nine hundred fifty thousand seven hundred ninety five"
I wonder if (-1847 + 3018)*796+-13*36/12-(864+473)*-14 really
does equal 950795...
Large Number Support
This is the 2nd version of Particle's Word Calculator. New things in this release include
support for huge numbers (upto about 60 or so decimal places). Since I live in the US, and
don't really care for the British system of naming these huge numbers, this program uses
the American System, for example:
one million = 10^6
one billion = 10^9
one trillion = 10^12
one quadrillion = 10^15
one quintillion = 10^18
one sextillion = 10^21
one septillion = 10^24
one octillion = 10^27
one nonillion = 10^30
one decillion = 10^33
one undecillion = 10^36
one duodecillion = 10^39
one tredecillion = 10^42
one quattuordecillion = 10^45
one quindecillion = 10^48
one sexdecillion = 10^51
one septendecillion = 10^54
one octodecillion = 10^57
one novemdecillion = 10^60
one vigintillion = 10^63
Download
[calc2.java][calc2.class]