ref: 73e115aab038880a68c9f73b5c49d8fa12d0e5e2 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; }