5 Jul
2020
5 Jul
'20
12:09 a.m.
On 5/07/20 7:33 am, Henk-Jaap Wagenaar wrote:
min(0, float('nan')) == 0 and same for max. I would hence expect clamp to behave similarly.
But min(float('nan'), 0) == nan. I don't think you can conclude anything from either of these about how clamp() *should* behave in the presence of nans, since they're accidents of implementation. -- Greg