User Tools

Site Tools


solaris:fmin.3m

fmin


NAME

fmin, fminf, fminl - determine minimum numeric value of two floating-point numbers

SYNOPSIS

c99 [ flag… ] file-lm [ library… ]
#include <math.h>

double fmin(double x, double y);

float fminf(float float x, float y);

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

DESCRIPTION

These functions 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, these functions choose the numeric value.

RETURN VALUES

Upon successful completion, these functions return the minimum numeric value of their arguments.

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

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

ERRORS

No errors are defined.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

math.h(3HEAD), fdim(3M), fmax(3M), attributes(7), standards(7)


solaris/fmin.3m.txt · Last modified: 2023/07/19 08:57 by A User Not Logged in