ref: 717237303d368378283ad719ee4f2c580b99fd2b dir: /sys/src/ape/lib/ap/math/fmin.c/
#include <math.h> double fmin(double a, double b) { if(isNaN(a)) return b; if(isNaN(b)) return a; return a < b ? a : b; }