Return the minimum of two values.
#include <math.h> double fmin(double x, double y); double fminf(float x, float y ); double fminl(long double x, long double y);
x
First argument.
y
Second argument.
These functions return x if x is less than or equal to y. Otherwise, they return y.
This facility may not be available on configurations of the EWL that run on platforms that do not have floating-point math capabilities.
#include <math.h> #include <stdio.h> int main(void) { double m = 4; double n = 6; printf("fmin(%f, %f)=%f.\n",m,n,fmin(m,n)); return 0; } Output: fmin(4.000000, 6.000000) = 4.000000.