//Calculatie today's weight loss in stones and lbs//Stones&LBS to stones Current WeightStones_CW = (row.Current_Weight.toLong() * 13.5);LBS_CW = ((row.Current_Weight - row.Current_Weight.toLong()) * 100);CW = (Stones_CW + LBS_CW);//Stones&LBS to stones Today's WeightStones_TW = (row.Today_s_Weight_st_lbs.toLong() * 13.5);LBS_TW = ((row.Today_s_Weight_st_lbs - row.Today_s_Weight_st_lbs.toLong()) * 100);TW = (Stones_TW + LBS_TW);//Calculate difference between CW and TWDifference = ((TW - CW) / 13.5);Stones_DF = Difference.toLong();LBS_DF = ((Difference - Stones_DF) * 0.135);row.Weight_Loss_Today = (Stones_DF + LBS_DF);//Calculatie total weight loss in stones and lbs//Stones&LBS to stones Starting WeightX = Members [ID = row.Select_member];Stones_SW = (X.Starting_Weight_st_lbs.toLong() * 13.5);LBS_SW = ((X.Starting_Weight_st_lbs - X.Starting_Weight_st_lbs.toLong()) * 100);SW = (Stones_SW + LBS_SW);//Stones&LBS to stones Today's WeightStones_TW1 = (row.Today_s_Weight_st_lbs.toLong() * 13.5);LBS_TW1 = ((row.Today_s_Weight_st_lbs - row.Today_s_Weight_st_lbs.toLong()) * 100);TW1 = (Stones_TW1 + LBS_TW1);//Calculate difference between CW and TWDifference1 = ((TW1 - SW) / 13.5);Stones_DF1 = Difference1.toLong();LBS_DF1 = ((Difference1 - Stones_DF1) * 0.135);row.Total_Weight_Loss = (Stones_DF1 + LBS_DF1);
Writer is a powerful online word processor, designed for collaborative work.