# Math(adding, multipling, ect

**URL:** <https://forum.kirupa.com/t/math-adding-multipling-ect/21246>\
**Category:** Uncategorized\
**Created:** [May 19, 2003, 4:02pm UTC](https://forum.kirupa.com/t/math-adding-multipling-ect/21246 "2003-05-19T16:02:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_B](https://avatars.discourse-cdn.com/v4/letter/r/f07891/32.png) [@Robert\_B](https://forum.kirupa.com/u/Robert_B)\
**Post date:** [May 19, 2003, 4:02pm UTC](https://forum.kirupa.com/t/math-adding-multipling-ect/21246/1 "2003-05-19T16:02:57Z")

</div>

Hello crew  
I was wandering if I can get values(numerical) from an xml files  
and multiply them. Need a tutorial

Something like this.

a-bat\>30  
one-base\>10  
two-base\>5  
three-base\>1  
home-run\>0  
ball-base\>2  
sacr\>2  
strike-out\>0

((ball-base + sacr) - a-bat) /  
(one-base + two-base + three-base + home-run) =  
rbis  
trace(rbis)

Does this make any sence?:q:

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 19, 2003, 10:37pm UTC](https://forum.kirupa.com/t/math-adding-multipling-ect/21246/2 "2003-05-19T22:37:58Z")

</div>

Hi,

I don’t really know much about XML, however there are some built in XML functions with flash MX at least.

You might find you have a problem using the ‘-’ as part of your variable name though. In your example how would the computer know that you don’t want to subtract two different variables from one another as opposed to them being one thing?

Just something to think about.

Liz
