【发布时间】:2021-02-10 17:34:40
【问题描述】:
fpclassify(x) == FP_NAN 在功能上是否等同于 isnan(x)?
同样的问题:
-
fpclassify(x) == FP_INFINITE与isinf(x) -
fpclassify(x) == FP_NORMAL与isnormal(x) -
fpclassify(x) == FP_SUBNORMAL与issubnormal(x) -
fpclassify(x) == FP_ZERO与iszero(x)
如果它们在功能上是等效的,那为什么需要重复呢?
【问题讨论】:
标签: c floating-point c17