Perl Programming/Keywords/abs

The abs keyword

Function abs returns the absolute value of VALUE, or of $_, if VALUE is omitted.

Syntax

  abs VALUE
  abs

Examples

The code
print abs(-21.7*.36);
returns with
7.812