Go to main content

man pages section 3: Extended Library Functions, Volume 4

Exit Print View

Updated: Thursday, June 13, 2019
 
 

signaling_nanf (3SUNMATH)

Name

infinity, min_subnormal, min_subnormalf, min_subnormall, max_subnormal, max_subnormalf, max_subnormall, min_normal, min_normalf, min_normall, max_normal, max_normalf, max_normall, infinityf, infinityl, quiet_nan, quiet_nanf, quiet_nanl, signaling_nan, signaling_nanf, signaling_nanl - special floating-point values

Synopsis

cc [ flag ... ] file ...  -lsunmath -lm [ library ... ]
#include <sunmath.h>
double min_subnormal(void);
float min_subnormalf(void);
long double min_subnormall(void);
double max_subnormal(void);
float max_subnormalf(void);
long double max_subnormall(void);
double min_normal(void);
float min_normalf(void);
long double min_normall(void);
double max_normal(void);
float max_normalf(void);
long double max_normall(void);
double infinity(void);
float infinityf(void);
long double infinityl(void);
double quiet_nan(long n);
float quiet_nanf(long n);
long double quiet_nanl(long n);
double signaling_nan(long n);
float signaling_nanf(long n);
long double signaling_nanl(long n);

Description

These functions return special values associated with ANSI/IEEE Std 754-1985 floating-point arithmetic.

min_subnormal() returns the smallest positive subnormal number. max_subnormal() returns the largest positive subnormal number.

min_normal() returns the smallest positive normal number (the underflow threshold). max_normal() returns the largest positive subnormal number (the overflow threshold).

infinity() returns positive infinity.

quiet_nan(n) returns a quiet NaN. signaling_nan(n) returns a signaling NaN. The parameter n is not used.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Availability
system/library/math

See Also

fp_class(3SUNMATH), isnand(3C), nan(3M), attributes(7)