Xcalc is a fairly basic calculator that allows mathematical equations to be entered via the console or by using the GUI calculator interface.
Xcalc is based off of QuickCalc by Mark Ribau. A good portion of the code has been rewritten, and the GUI has been completely rewritten.
Clicking the minimap icon or typing the command without parameters opens the xcalc GUI.
Numpad keys can be remapped to the calculator keys when the GUI is visible if that option is selected.
Shift-Enter with the GUI visible opens chat and Shift-Click on result inserts it to chat editbox.
Xcalc supports computing expressions from the command line.
This is accessed by typing out one of the slash commands with the expression following the slash command.
+ - * / ^ ( )
ans - Will return the last answer given from using the slash commands
Reference at Wowpedia.
- /calc 2 + 2
xcalc Result: 2 + 2 = 4
- /calc 3.5g
xcalc Result: 3.5g = 3g50s
- /calc (3.5g + 50s) * 2
xcalc Result: (3.5g + 50s) * 2 = 8g
- /calc 4g / 5
xcalc Result: 4g / 5 = 80s