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