![](templates/Classic/images/spacer.gif) |
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Wed Mar 02, 2005 7:33 am
Can someone explain something with numbers |
Hello again, another problem with my math and numbers...
I have %eval(-10-8) and it comes out at 0. I need it to come out as -28. Any ideas on how to do this?
Thanks alot! |
|
|
![](templates/Classic/images/spacer.gif) |
Odoth Wanderer
![](images/avatars/189914922845f663bdb5ac3.jpg)
Joined: 13 Nov 2004 Posts: 54 Location: Visalia, CA
|
Posted: Wed Mar 02, 2005 7:48 am |
-10-8 is -18
Also, I didn't have a problem with this. Used #show %eval(-10-8) to check it. Maybe if you showed how exactly you are using it? |
|
_________________ *ribbit* |
|
|
![](templates/Classic/images/spacer.gif) |
RobMacAF Apprentice
Joined: 09 Jun 2002 Posts: 186 Location: USA
|
Posted: Wed Mar 02, 2005 9:41 am |
I had the -10 and the 8 saved in two variables, and I was doing...
#MATH (@Var1-@Var2)
or something like that....accidently deleted the entire script. Figured I'd wait until I got this answer before I started it again...
Now that I go back and actually try it....it works....hmm....
Ok, I will try rewriting the script then see if it works. I have NO CLUE why it would have switched....I did restart ZMUD but I doubt that'd be it |
|
|
![](templates/Classic/images/spacer.gif) |
Kiasyn Apprentice
![](images/avatars/93131252242687c29e4980.gif)
Joined: 05 Dec 2004 Posts: 196 Location: New Zealand
|
Posted: Wed Mar 02, 2005 11:25 am |
#MATH is weird... :P I /always/ use %eval
|
|
|
![](templates/Classic/images/spacer.gif) |
|
|