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();
var tem2:Number = 0.60 - temp;
var tem2:Number = temp - 0.60;
var a:Number = 2.23; var b:Number = 2.36; var c:Number = 1.18; var d:Number = 1.13; var totalHours = 0.0; var inta:int = a; var numa:Number = a - inta; var intb:int = b; var numb:Number = b - intb; var intc:int = c; var numc:Number = c - intc; var intd:int = d; var numd:Number = d - intd; var total:int = inta + intb + intc + intd; var totalsec:Number = numa + numb + numc + numd; var tempsec:int = totalsec * 100; var temp:int = tempsec/60; total += temp; var sec:Number = tempsec - (temp*60); sec = sec/100; totalHours = total + sec; txtTotal.text = totalHours.toString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)