6.11.73 fminl Function
Returns the value of the smaller long double-precision argument.
Include
<math.h>
Prototype
long double fminl(long double x, long double y);
Arguments
x
- any long double precision floating-point number
y
- any long double precision floating-point number
Return Value
Returns the long double-precision value of the smaller argument.
Example
See the notes at the beginning of this chapter or section for
information on using printf()
or scanf()
(and other functions reading and writing the stdin
or
stdout
streams) in the example code.
#include <math.h>
#include <stdio.h>
int main(void)
{
long double x, y, z;
x = -5.7;
y = 2.0;
z = fminl(x, y);
printf("The smaller of %Lf and %Lf is %Lf\n", x, y, z);
}
Example Output
The smaller of -5.700000 and 2.000000 is -5.700000