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.