Quote:
Originally Posted by cbk1994
Looks good
You can do "/=", "-=", etc.
|
but i have to change Calculator_input.text.
and if i would do
PHP Code:
Calculator_input.text -= this.number1;
i would get Calculator_input.text = Calculator_input.text - this.number1;
when i need Calculator_input.text = this.number1 - Calculator_input.text;
the wrong way arround :s
same with /= but for multiplying and adding it doesn't matter which one comes first.
for example
PHP Code:
Calculator_input.text = 5;
this.number1 = 2;
i need this.number1 - Calculator_input.text = -3
but if i would do =- i would get Calculator_input.text -= this.number1; which is
3 but in the order which it is entered in the calculator i need the first way.