Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > F


HP-UX 11i Version 3: February 2007

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index


fmin(), fminf(), fminl(), fminw(), fminq() — minimum value functions


#include <math.h>

double fmin(double x, double y);

HP Integrity Server Only

float fminf(float x, float y);

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

extended fminw(extended x, extended y);

quad fminq(quad x, quad y);


The fmin() function determines the minimum numeric value of its arguments.

Integrity Server Only

fminf() is a float version of fmin(); it takes float arguments and returns a float result.

fminl() is a long double version of fmin(); it takes long double arguments and returns a long double result.

fminw() is an extended version of fmin(); it takes extended arguments and returns an extended result.

fminq() is equivalent to fminl() on HP-UX systems.


To use this function, compile either with the default -Ae option or with the -Aa and -D_HPUX_SOURCE options. To use (for Integrity servers) fminw() or fminq(), compile with the -fpwidetypes option. Make sure your program includes <math.h>. Link in the math library by specifying -lm on the compiler or linker command line.


The fmin() function returns the minimum numeric value of its arguments.

If one argument is a NaN and the other is numeric, fmin() returns the numeric argument.

If both arguments are NaNs, fmin() returns NaN.


No errors are defined.


fmin(), fminf(), fminl() : ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'')

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.