C++/floating point trivia; what's the difference between:float x_clamped = x >= max ? max : x;andfloat x_clamped_ = x < max ? x : max;?
Answer Show more
The first one will propagate NaNs, while the second will not.
Answer Show more
The first one will propagate NaNs, while the second will not.