fpclassify#
Classify a floating-point number.
תקציר#
use POSIX qw(fpclassify FP_NAN FP_INFINITE FP_ZERO FP_SUBNORMAL FP_NORMAL);
my $k = fpclassify($x);
מה מוחזר#
An integer matching one of the FP_* constants. Compare against the symbolic names, not a hardcoded number - the values are libc implementation details.
הבדלים מן ה-upstream#
Fully compatible with upstream POSIX.
ראו גם#
isnan,isinf,isfinite,isnormal- narrower single-class tests.