[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

fminf or fminl Subroutine

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;

Description

The fminf and fminl 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 and fminl subroutines choose the numeric value.

Parameters

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

Return Values

Upon successful completion, the fminf and fminl 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.

Related Information

fdim, fdimf, or fdiml Subroutine, fmax, fmaxf, or fmaxl Subroutine.

math.h in AIX 5L Version 5.2 Files Reference.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]