# Adding and substracting number variables?

**URL:** <https://forum.kirupa.com/t/adding-and-substracting-number-variables/45947>\
**Category:** Uncategorized\
**Created:** [March 19, 2004, 3:33pm UTC](https://forum.kirupa.com/t/adding-and-substracting-number-variables/45947 "2004-03-19T15:33:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chubob](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chubob/32/368_2.png) [@chubob](https://forum.kirupa.com/u/chubob)\
**Post date:** [March 19, 2004, 3:33pm UTC](https://forum.kirupa.com/t/adding-and-substracting-number-variables/45947/1 "2004-03-19T15:33:21Z")

</div>

hi, I’ve got a question  
If I want to add or substract number variables, how can I name them to indicate they are numbers and how can I do basic math with them?

If I try adding common variables like  
\_root.answer = \_root.var1+\_root.var2;  
and if var 1 is = 1  
and var 2 is = 2  
The answer is 12 not 3

so… ? help!🔗
