I am using FLEX version 3.0
I want to calculate the total working hours. I am giving you the details and what i have done in it.
var a:Number = 2.00;
var b:Number = 2.00;
var c:Number = 1.45;
var d:Number = 1.30;
var total:Number = a+b+c+d;
var totalmin:int = total;
var temp:Number = total - totalmin;
var tem2:Number = 0.60 - temp;
var workhour:Number = 0;
while(total >= 0)
{
workhour += 1;
total -= 1.00;
}
var tot:Number = workhour + tem2;
txtTotal.text = tot.toString();
I want result 7.15 not 6.75.
currently i am getting 6.85… please Help to solve this issue.
thanks in advance.
I have worked a lot on this one and find one of the interesting questions…..
and i have found the correct answer for that.. Keep posting that interesting questions.
here is the code.