- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
4,840 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Rift Addons
- Top Skyrim Mods
- Top Minecraft Server Mods
- Top Terraria Maps
- Top Starcraft II Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
xcalc
- 2 Likes
- World of Warcraft
- 8,063 Downloads
- Supports: 4.0.1
- 2 Average Daily Downloads
- Comments
- Created 6/5/2009 3:48:59 PM
- Updated 10/20/2010 12:30:01 PM
- 48 Favorites
- Project Site
- License: GNU General Public License version 3 (GPLv3)
- Release Type: Release
- Newest File: v2.5
About xcalc
Xcalc is a fairly basic calculator that allows mathmatical 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.
Usage slash commands: /xcalc /calc /=
there is a = minimap icon that will all open the GUI interface. also of importance xcalc will rebind your all your numberpad keys to the gui interface when the Gui is open so it is not necessary to bind those keys. the GUI will rebind the numberpad keys back to their original bindings when the window closes. With the GUI open use shift+enter to open the chat dialog, and you can shift+left click on the number window to output that to the chat dialog if it is open.
Xcalc does support computing of expressions from the command line. This is accessed by using the slash commands with the expression after the slash command.
Math operators: + - * / ^ ( )
Special Keyword: ans - Will return the last answer given from using the slash commands
Math Functions: abs() acos() asin() atan() atan2(,) ceil() deg() floor() frexp() ldexp() exp() log() log10() min([,...]) max([,...]) mod(,) rad() random([[,] ]) randomseed() sqrt() cos() sin() tan() Please see http://www.wowwiki.com/World_of_Warcraft_API#Math_Functions for more information on the math functions.
Money strings:
- .#g
- .#s
- c
- g#s#c
- g#s
- g#c
- s#c
example: /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
tag v2.5
8d8d827132fa2635f905dbfa3bef3562b3f6273c
moird <dan@moird.com>
2010-10-20 11:17:50 -0600
Tagging as v2.5
--------------------
moird:
- Fixed mod registration Lua updated for 4.0

Comments
Dead addon?
As for the what you were talking about before, I can look into that. It should only be affecting the number pad enter, but there may not be a way to differentiate between the two. Might be a while before that would make it's way into an update if I find a way around that.
One thing i've noticed though is that it takes control of the Enter key.. meaning I can't press enter to type in chat any more with this addon enabled. I had to manually rebind the key and disable the xcalc auto-keybinding.
Could you make it so that if the xcalc window isn't open it just lets enter start chat instead?
Thought this addon might have been abandoned.
I am happy to see this was not the case, I've missed my "/="! :)
/calc doesn't do anything now
Close wow.
Open core.lua in a text editor.
Search for arg1 and replace it with a1.
Save the file.
Profit!
Core.lua was for another addon, my bad.
For Xcalc it is xcalc.lua.
It is located in the xcalc directory(wowfolder\Interface\Addons\Xcalc\).
The other steps are the same.
ADDON_LOADED(...)
with
ADDON_LOADED(arg1, ...)
Thanks for trying Nixxen -- I appreciate the response =)
Now if only I could get myself to get back to work on all my addons...
Date: 2010-03-25 14:17:34
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\xcalc\xcalcgui.lua line 46:
attempt to index global 'xcalc_numberdisplay' (a nil value)
Debug:
[C]: ?
xcalc\xcalcgui.lua:46: display()
xcalc\xcalc.lua:303: funckey()
xcalc\xcalc.lua:162: buttoninput()
[string "XC_EQ"]:1:
[string "XC_EQ"]:1