fminf, fminl, fmind32, fmind64, and fmind128 Subroutines

Purpose

Determines the minimum numeric value of two floating-point numbers.

Syntax

#include <math.h>

float fminf (x, y)
float x;
float y;

long double fminl (x, y)
long double x;
long double y;

_Decimal32 fmind32 (x, y)
_Decimal32 x;
_Decimal32 y;

_Decimal64 fmind64 (x, y)
_Decimal64 x;
_Decimal64 y;

_Decimal128 fmind128 (x, y)
_Decimal128 x;
_Decimal128 y; 

Description

The fminf, fminl, fmind32, fmind64, and fmind128 subroutines determine the minimum numeric value of their arguments. NaN arguments are treated as missing data. If one argument is a NaN and the other numeric, the fminf, fminl, fmind32, fmind64, and fmind128 subroutines choose the numeric value.

Parameters

Item Description
x Specifies the value to be computed.
y Specifies the value to be computed.

Return Values

Upon successful completion, the fminf, fminl, fmind32, fmind64, and fmind128 subroutines return the minimum numeric value of their arguments.

If one argument is a NaN, the other argument is returned.

If x and y are NaN, a NaN is returned.