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.