This question is locked. New answers and comments are not allowed.
I'm trying to use the following expression to avoid division by 0:
Expression<Func<UPSReport, double>> expression = u => ((u.U1 + u.G1 + u.C1) > 0 ? (u.Cl / (u.U1 + u.G1 + u.C1)) : 0);
It keeps coming out with just 0's. How could this be resolved?