This content has been marked as final. Show 5 replies
Flash is concatenating it as a string, because one of the operands is a string and + is a valid string operator.
If you want a number try this:
minutes = hours_txt.text*60+Number(minutes_txt.text);
minutes = Number(hours_txt.text)*60+Number(minutes_txt.text);
No problem, you're welcome
I am also having a relatively simple calculation program. I have a calculation, which is shown to the user, and may times ends up being a fraction. I have been hunting down ways of rounding this result up, so further calculations can be performed. (Its for a wood production company who need to calculate produce in fixed amounts).
does anyone have a code which would make my result round up to the nearest whole number?
Thanks for your time,