This content has been marked as final.
Show 5 replies

1. Simple Calculation Problem
Greg Dove Sep 5, 2007 6:46 AM (in response to Yue_Hong)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);
or
minutes = Number(hours_txt.text)*60+Number(minutes_txt.text);


3. Re: Simple Calculation Problem
Greg Dove Sep 5, 2007 6:54 AM (in response to Yue_Hong)No problem, you're welcome 
4. Re: Simple Calculation Problem
dadaveda Mar 25, 2008 4:22 AM (in response to Greg Dove)Hi there,
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,
Dave 
5. Re: Simple Calculation Problem
rlc5611 Mar 25, 2008 4:29 AM (in response to dadaveda)Math.round()