abs#

Integer absolute value of $n.

Σύνοψη#

my $n = POSIX::abs(-7);   # 7

Τι επιστρέφεται#

An integer scalar. Unlike the core abs built-in, the argument is coerced to IV before taking the absolute value, so floating-point inputs are truncated.

Διαφορές από το upstream#

Fully compatible with upstream POSIX.