C23 now has four different ways of computing the maximum or minimum of two floating-point numbers: x > y ? x : y for maximum (or the other way for minimum) fmax / fmin fmaximum / fminimum fmaximum_num / fminimum_num What is the difference between these, and when in doubt, which one should I choose?
Be the first to answer this question