carta
fminimum_mag_numf(3)

fminimum_mag_numf3

Floating-point maximum and minimum magnitude number functions

Part of fmaximum_mag_num(3).

Usage

double

float

long double

double

float

long double

Library

Math Library (libm, -lm)

Overview

The fmaximum_mag_num(), fmaximum_mag_numf(), and fmaximum_mag_numl() functions determine the larger of the absolute values of x and y, and return the argument with the larger absolute value, preferring a numeric value over an . If one argument is a numeric value and the other is an , the numeric value is returned. If the absolute values are equal, the behavior is equivalent to calling the corresponding fmaximum_num() function on the arguments.

Likewise, the fminimum_mag_num(), fminimum_mag_numf(), and fminimum_mag_numl() functions determine the smaller of the absolute values of x and y, and return the argument with the smaller absolute value, preferring a numeric value over an . If one argument is a numeric value and the other is an , the numeric value is returned. If the absolute values are equal, the behavior is equivalent to calling the corresponding fminimum_num() function on the arguments.

If both arguments are s, a quiet is returned. If either argument is a signaling , an invalid exception is raised. Otherwise, these routines do not raise any floating-point exceptions.

Standards

The fmaximum_mag_num(), fmaximum_mag_numf(), fmaximum_mag_numl(), fminimum_mag_num(), fminimum_mag_numf(), and fminimum_mag_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.