A simple command line calculator.
Accepts any valid combination of 0-9, +, -, *, /, decimals (.), and parenthesis (). Passing an equation that begins with an operator (+,-,*,/) will treat the equation as starting with the previous answer. White space is ignored.
Includes rudimentary support for exponents. Due to limitations, cannot handle exponents combined with parenthesis. (5+3)^2 or 2^(5+3) will fail silently.
Assumes multiplication for parenthesis lacking an operator.
Examples:
/math 4 + 10 Math: 4 + 10 = 14 /math / 7 Math: 14 / 7 = 2 /math *2+4/ (5-3) Math: 2 *2+4/ (5-3) = 6 /math 2^8 Math: 2^8 = 256 /math (12-2)4 Math: (12-2)4 = 40
- 2 comments
- 2 comments
Facts
- Date created
- 05 Apr 2009
- Category
- Last update
- 16 Apr 2009
- Development stage
- Release
- Language
- deDE
- enUS
- esES
- esMX
- frFR
- koKR
- ruRU
- zhCN
- zhTW
- License
- All Rights Reserved
- Curse link
- Math
- Recent files
- R: 1.0.2 for 3.1.0 on 16 Apr 2009
- R: 1.0.1 for 3.0.9 on 13 Apr 2009
- A: 1.0.0-1-g81cf0c1 for 3.0.9 on 13 Apr 2009
- R: 1.0.0 for 3.0.9 on 06 Apr 2009
- A: r20090406065935 for 3.0.9 on 06 Apr 2009
- #2
weab Mon, 06 Apr 2009 18:07:46For Addon Developers sure, but it should only have taken a few seconds for you to come to the conclusion that the average user will not think to use a /dump command in that way, know it exists or what it does, or in some cases even have an addon that includes it.
Stop trolling.
- #1
Gregory Mon, 06 Apr 2009 15:13:56/dump isn't good enough ?