Printed | Means |
---|---|
1.#INF | Positive infinity |
-1.#INF | Negative infinity |
1.#SNAN | Positive signal non-number (signaling NaN) |
-1.#SNAN | Negative signal non-number (signaling NaN) |
1.#QNAN | Positive non-signal non-number (quiet NaN) |
-1.#QNAN | Negative non-signal non-number (quiet NaN) |
1.#IND | Positive uncertainty |
-1.#IND | Negative uncertainty |
signaling_NaN()
or quiet_NaN()
methods of the std::numeric_limits. , -- " ", " " .. - -, .. , .
- , runtime- Visual C , . , , , : , 1.#INF -1.#INF
, . , -, -- . , . x86 - , .
(. .: , x86 -1.#INF
, -- -1.#IND
)
, - .
, 1.#J
:
double z = 0; printf("%.2f", 1/z);
1.#INF
, runtime- - . , - " 1.
" -- , . , " #I
", "" -- " N
" -- 5, "" " J
".
-- J, I, ?
- ; , , -- , , 1.#J
.
, () I Ü . 1.#INF
1.#Ü
, über-.
std::numeric_limits. , -- " ", " " .. - -, .. , .
- , runtime- Visual C , . , , , : , 1.#INF
-1.#INF
, . , -, -- . , . x86 - , .
(. .: , x86 -1.#INF
, -- -1.#IND
)
, - .
, 1.#J
:
double z = 0; printf("%.2f", 1/z);
1.#INF
, runtime- - . , - " 1.
" -- , . , " #I
", "" -- " N
" -- 5, "" " J
".
-- J, I, ?
- ; , , -- , , 1.#J
.
, () I Ü . 1.#INF
1.#Ü
, über-.
std::numeric_limits. , -- " ", " " .. - -, .. , .
- , runtime- Visual C , . , , , : , 1.#INF
-1.#INF
, . , -, -- . , . x86 - , .
(. .: , x86 -1.#INF
, -- -1.#IND
)
, - .
, 1.#J
:
double z = 0; printf("%.2f", 1/z);
1.#INF
, runtime- - . , - " 1.
" -- , . , " #I
", "" -- " N
" -- 5, "" " J
".
-- J, I, ?
- ; , , -- , , 1.#J
.
, () I Ü . 1.#INF
1.#Ü
, über-.
std::numeric_limits. , -- " ", " " .. - -, .. , .
- , runtime- Visual C , . , , , : , 1.#INF
-1.#INF
, . , -, -- . , . x86 - , .
(. .: , x86 -1.#INF
, -- -1.#IND
)
, - .
, 1.#J
:
double z = 0; printf("%.2f", 1/z);
1.#INF
, runtime- - . , - " 1.
" -- , . , " #I
", "" -- " N
" -- 5, "" " J
".
-- J, I, ?
- ; , , -- , , 1.#J
.
, () I Ü . 1.#INF
1.#Ü
, über-.
Source: https://habr.com/ru/post/171203/
All Articles