Example:
public static double ComputeFoo(double nom, double den, double epsilon = 2.2e-16)
{
double den1 = den == 0.0 ? epsilon : den;
// den1 can still be zero if epsilon is zero
// is there any way to retrieve 2.2e-16 here and assign it to den1?
return nom/den1;
}
Is there a way to retrieve 2.2e-16 value and use it in method?
P.S.: I understand that for this particular example I can just call ComputeFoo(nom, den1).