[Solved] my math is broken on TextView
[ad_1] The problem is here: double calcTipsPerHour = resultTotalHours / totalTips; This is currently doing 2 / 10 = 0.2. You want to do the reciprocal: double calcTipsPerHour = totalTips / resultTotalHours; This should also fix your waiter’s pay 0 [ad_2] solved my math is broken on TextView