Returns the value of the smaller argument.
Include
<math.h>
Prototype
long double fmaxl(long double x, long double y);
Argument
x
y
Return Value
Returns the value of the larger argument.
Example
#include <math.h>
#include <stdio.h>
int main(void)
{
long double x, y, z;
x = -5.7;
y = 2.0;
z = fmaxl(x, y);
printf("The larger of %Lf and %Lf is %Lf\n", x, y, z);
}
Example Output
The larger of -5.700000 and 2.000000 is 2.000000