![]() |
POSITIVE_INF | Constant (Pseudo-constant) |
math.h, timath.h |
Represents an infinitely large positive quantity.
POSITIVE_INF
represents an infinitely large positive quantity. TIOS generates POSITIVE_INF
when the result is infinite in magnitude, but when it is known to be positive (for example,
atanh returns POSITIVE_INF
when the argument is equal to 1).
TIOS also generates POSITIVE_INF
as the result of positive
overflow (i.e. when the result is positive and too big to be represented in
float
type), and as the result of rounding extremely big positive
numbers using round14 or round12_err.
TIOS allows much greater flexibility when working with "signed"
infinities than with UNSIGNED_INF. To check whether a value
is signed infinity, use is_sinf. POSITIVE_INF
belongs to the
class of "transfinite" numbers (see is_transfinite).