nixon
1
I’m trying the add the data value of a selected combo box item (.35) to 1 using:
var theFringe:Number = _root.calc.fringe.getValue();
_root.calc.fFringe.text = theFringe+1;
Returns: .351
Is there a way to convert the data from the comboBox to an integer so that when I add .35 +1 I’ll get 1.35?
Thanks in advance!
nixon
2
[quote=nixon;2338096]I’m trying the add the data value of a selected combo box item (.35) to 1 using:
var theFringe:Number = _root.calc.fringe.getValue();
_root.calc.fFringe.text = theFringe+1;
Returns: .351
Is there a way to convert the data from the comboBox to an integer so that when I add .35 +1 I’ll get 1.35?
Thanks in advance![/quote]
Update:
I had to change my variable to:
var theFringe:Number = Number(_root.calc.fringe.getValue()); //added Number(…)