carta
fmaximum_numl(3)

fmaximum_numl3

Floating-point maximum and minimum number functions

Part of fmaximum_num(3).

Usage

double

float

long double

double

float

long double

Library

Math Library (libm, -lm)

Overview

The fmaximum_num(), fmaximum_numf(), and fmaximum_numl() functions determine the larger of x and y, preferring a numeric value over an . If one argument is a numeric value and the other is an , the numeric value is returned. If both arguments are numeric, the larger value is returned. If both arguments are s, a quiet is returned. For the purpose of these functions, positive zero is considered greater than negative zero.

Likewise, the fminimum_num(), fminimum_numf(), and fminimum_numl() functions determine the smaller of x and y, preferring a numeric value over an . If one argument is a numeric value and the other is an , the numeric value is returned. If both arguments are numeric, the smaller value is returned. If both arguments are s, a quiet is returned. For the purpose of these functions, negative zero is considered less than positive zero.

Unlike with the fmaximum(3) and fmaximum_mag(3) families of functions, if either argument is a signaling , an invalid exception is raised. Otherwise, these routines do not raise any floating-point exceptions.

Standards

The fmaximum_num(), fmaximum_numf(), fmaximum_numl(), fminimum_num(), fminimum_numf(), and fminimum_numl() functions conform to ISO/IEC 9899:2024 (“ISO C23”).

History

These routines first appeared in FreeBSD 16.0.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.