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